From c517f9c6f9a4cda7422dacf70ee43005343664bb Mon Sep 17 00:00:00 2001 From: Bailey Ling Date: Sat, 24 Aug 2013 21:17:16 -0400 Subject: [PATCH] fix potential performance problems with completeopt+=preview --- plugin/airline.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/airline.vim b/plugin/airline.vim index 022d8fbf..2b5310c1 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -72,6 +72,9 @@ function! s:init() endfunction function! s:on_window_changed() + if pumvisible() + return + endif call init() call airline#update_statusline() endfunction