From 33c4c4a685a48894dbac7c33c2a25ab9b904c030 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Wed, 28 Feb 2018 16:56:26 +0000 Subject: [PATCH] Enable update on FocusGained for gVim. This was prevented to avoid an infinite loop on gVim (see #42). However that was 5 years ago and this no longer seems to be a problem (even running synchronously). --- plugin/gitgutter.vim | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 4d95986..e56305a 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -224,9 +224,7 @@ augroup gitgutter " vim -o file1 file2 autocmd VimEnter * if winnr() != winnr('$') | call gitgutter#all(0) | endif - if !has('gui_win32') - autocmd FocusGained * call gitgutter#all(1) - endif + autocmd FocusGained * call gitgutter#all(1) autocmd ColorScheme * call gitgutter#highlight#define_sign_column_highlight() | call gitgutter#highlight#define_highlights()