Merge pull request #936 from h3xx/fix-logic-simplicity

Simplify logic on if statement
This commit is contained in:
Christian Brabandt 2016-01-21 20:50:14 +01:00
commit 8afd72d886

View File

@ -27,8 +27,7 @@ function! s:init()
endfunction endfunction
function! s:on_window_changed() function! s:on_window_changed()
if pumvisible() && (!&previewwindow || if pumvisible() && (!&previewwindow || g:airline_exclude_preview)
\ (g:airline_exclude_preview && &previewwindow))
return return
endif endif
call s:init() call s:init()