mirror of
https://github.com/vim-airline/vim-airline-themes.git
synced 2024-12-11 12:47:44 +08:00
Merge pull request #936 from h3xx/fix-logic-simplicity
Simplify logic on if statement
This commit is contained in:
commit
8afd72d886
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue
Block a user