From 9f04ef3170ae553108ce68fbcfd4997d4fe8afaa Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sat, 3 Aug 2013 23:44:50 +0000 Subject: [PATCH] fix ctrlp statusline getting overwritten via cursormove --- plugin/airline.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index 2f2a905..7439b91 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -70,6 +70,10 @@ endfunction " non-trivial number of external plugins use eventignore=all, so we need to account for that function! s:sync_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() endif endfunction