vim-airline/autoload/airline
David Briscoe c2ff76829f Ignore FocusGained events for the current second
Fix #2062: restore g:airline_focuslost_inactive behaviour.

Only ignore focusgained events on Windows. If there are more problematic
platforms, we'll add them later.

Instead of ignoring the next x FocusGained events whenever we do call
system(), ignore them for the current second. That allows us to put a
hard limit on the duration of the ignore.

This seems like a much better solution than the previous one because it
also prevents ignore events from building up (s:focusgained_ignored was
often greater than 5).

Test (gvim 8.2.140 on Win10)
gvim.exe ~/.vim/bundle/airline/autoload/airline/extensions/branch.vim
:Gedit HEAD
check several parents and no regression of looping behaviour from #2053.

:let g:airline_focuslost_inactive = 1
:split
alt-tab several times and statusline is correctly dimmed and restored
each time.
2020-02-21 09:21:47 -08:00
..
extensions branch: ignore upcoming FocusGained when updating 2020-01-28 12:01:09 -08:00
themes update license's year in vim-airline 2020-01-06 11:22:49 +09:00
async.vim async: correctly use &shell and &shellcmdflag 2020-01-28 16:04:53 +01:00
builder.vim update license's year in vim-airline 2020-01-06 11:22:49 +09:00
debug.vim update license's year in vim-airline 2020-01-06 11:22:49 +09:00
extensions.vim [fix] can display loaded extension in g:airline_extensions 2020-01-27 07:11:24 +09:00
highlighter.vim highlighter: fix obvious spelling error 2020-01-20 12:32:06 +01:00
init.vim update license's year in vim-airline 2020-01-06 11:22:49 +09:00
msdos.vim update license's year in vim-airline 2020-01-06 11:22:49 +09:00
parts.vim update license's year in vim-airline 2020-01-06 11:22:49 +09:00
section.vim update license's year in vim-airline 2020-01-06 11:22:49 +09:00
themes.vim update license's year in vim-airline 2020-01-06 11:22:49 +09:00
util.vim Ignore FocusGained events for the current second 2020-02-21 09:21:47 -08:00