From 1d6ec383e497a7d4b0947cc58927a6ac068675e7 Mon Sep 17 00:00:00 2001 From: Dan Church Date: Thu, 21 Jan 2016 10:45:10 -0600 Subject: [PATCH] Simplify logic on if statement Referencing the same boolean multiple times in a logical statement is probably not what was intended. --- plugin/airline.vim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 0fcf55c..204df99 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -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()