From b7d3feb4d2bd4e53bec8efe3370d265c3f3c7b61 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 10 Jan 2018 08:41:04 +0100 Subject: [PATCH] tabline: correctly refresh on :syn commands fixes #1590 and #1638 --- plugin/airline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index d77c4a13..91e8e5f0 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -96,7 +96,7 @@ function! s:airline_toggle() autocmd GUIEnter,ColorScheme * call on_colorscheme_changed() " Refresh airline for :syntax off - autocmd SourcePre *syntax.vim call airline_refresh() + autocmd SourcePre */syntax/*syntax.vim call airline_refresh() autocmd VimEnter,WinEnter,BufWinEnter,FileType,BufUnload * \ call on_window_changed() if exists('#CompleteDone')