mirror of
https://github.com/gryf/pythonhelper.git
synced 2025-12-18 12:00:27 +01:00
Version 0.71
- fixed problem with undefined window-bound variable w:PHStatusLine when a window has been split into two. - unbound event BufWinEnter because it's not needed because of the above change now
This commit is contained in:
committed by
Able Scraper
parent
6a3cd0da42
commit
9f5c2d1dc2
@@ -336,10 +336,18 @@ function! PHBufferDelete()
|
||||
endfunction
|
||||
|
||||
|
||||
function! TagInStatusLine()
|
||||
if (exists("w:PHStatusLine"))
|
||||
return w:PHStatusLine
|
||||
else
|
||||
return ""
|
||||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
|
||||
" autocommands binding
|
||||
autocmd CursorHold * silent call PHCursorHold()
|
||||
autocmd BufWinEnter * silent call PHCursorHold()
|
||||
autocmd BufDelete * silent call PHBufferDelete()
|
||||
|
||||
" time that determines after how long time of no activity the CursorHold event
|
||||
@@ -352,7 +360,5 @@ highlight User1 gui=bold guifg=cyan guibg=black
|
||||
highlight User2 gui=bold guifg=black guibg=red
|
||||
" the status line will be displayed for every window
|
||||
set laststatus=2
|
||||
" set the status variable for the current window
|
||||
let w:PHStatusLine = ''
|
||||
" set the status line to display some useful information
|
||||
set stl=%-f%r\ %2*%m%*\ \ \ \ %1*%{w:PHStatusLine}%*%=[%l:%c]\ \ \ \ [buf\ %n]
|
||||
set stl=%-f%r\ %2*%m%*\ \ \ \ %1*%{TagInStatusLine()}%*%=[%l:%c]\ \ \ \ [buf\ %n]
|
||||
|
||||
Reference in New Issue
Block a user