From 2ea22c1aaa84c27968f74801ffec860419aa2a60 Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Sun, 26 Feb 2017 10:28:24 +0100 Subject: [PATCH] Also cache filetype The cache currently prevents e.g. that the wordcount() extensions kicks in the first time you open a help window. Therefore take the filetype into consideration as well. --- plugin/airline.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index 53a21b6..8eddcf5 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -41,7 +41,7 @@ function! s:on_window_changed() endif " Handle each window only once, since we might come here several times for " different autocommands. - let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr()] + let l:key = [bufnr('%'), winnr(), winnr('$'), tabpagenr(), &ft] if get(g:, 'airline_last_window_changed', []) == l:key \ && &stl is# '%!airline#statusline('.winnr().')' return