mirror of
https://github.com/vim-airline/vim-airline.git
synced 2024-11-26 18:31:02 +08:00
c2ff76829f
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. |
||
---|---|---|
.. | ||
extensions | ||
themes | ||
async.vim | ||
builder.vim | ||
debug.vim | ||
extensions.vim | ||
highlighter.vim | ||
init.vim | ||
msdos.vim | ||
parts.vim | ||
section.vim | ||
themes.vim | ||
util.vim |