fix ctrlp statusline getting overwritten via cursormove

This commit is contained in:
Bailey Ling 2013-08-03 23:44:50 +00:00
parent 10fa73996b
commit 9f04ef3170

View File

@ -70,6 +70,10 @@ endfunction
" non-trivial number of external plugins use eventignore=all, so we need to account for that " non-trivial number of external plugins use eventignore=all, so we need to account for that
function! s:sync_active_winnr() function! s:sync_active_winnr()
if winnr() != s:active_winnr if winnr() != s:active_winnr
" prevent ctrlp statusline from getting overwritten
if match(&statusline, 'CtrlPlight') >= 0
return
endif
call s:on_window_changed() call s:on_window_changed()
endif endif
endfunction endfunction