Simplify logic on if statement

Referencing the same boolean multiple times in a logical statement is
probably not what was intended.
This commit is contained in:
Dan Church committed 2016-01-21 10:46:36 -06:00
1 parent d07799421a
commit 1d6ec383e4
1 file changed
+1 -2
+1 -2
View File
@@ -27,8 +27,7 @@ function! s:init()
endfunction
function! s:on_window_changed()
if pumvisible() && (!&previewwindow ||
\ (g:airline_exclude_preview && &previewwindow))
if pumvisible() && (!&previewwindow || g:airline_exclude_preview)
return
endif
call s:init()