From ce6cf6f07e9cc25d3fad0bc90cf9eb7cd80ff2ef Mon Sep 17 00:00:00 2001 From: Christian Brabandt Date: Wed, 7 Nov 2018 17:55:11 +0100 Subject: [PATCH] Check that funcrefs() actually exists closes #1819 --- plugin/airline.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin/airline.vim b/plugin/airline.vim index bfc752cb..8d4f2da5 100644 --- a/plugin/airline.vim +++ b/plugin/airline.vim @@ -123,9 +123,10 @@ function! s:airline_toggle() \ | endif autocmd VimResized * unlet! w:airline_lastmode | :call airline_refresh() - if s:has_timers + if s:has_timers && (v:version > 704 || (v:version == 704 && has("patch2137"))) " do not trigger FocusGained on startup, it might erase the intro " screen (see #1817) + " needs funcref() which comes with 7.4.2137 let Handler=funcref('FocusGainedHandler') let s:timer=timer_start(5000, Handler) else