mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2025-12-06 09:14:24 +08:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user