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 2016-01-21 10:45:10 -06:00
parent d07799421a
commit 1d6ec383e4
No known key found for this signature in database
GPG Key ID: 30E497BB59667EC2

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()