From 1f040084852b04fa29be55734d1ba55aa88ad0e2 Mon Sep 17 00:00:00 2001 From: Nick Andryshak Date: Tue, 12 Mar 2013 16:25:18 +0100 Subject: [PATCH] Improve fix to Windows gVim infinite shell loop. --- plugin/gitgutter.vim | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index b0e2e18..b5669c5 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -12,10 +12,6 @@ endif if !exists('g:gitgutter_highlight_lines') let g:gitgutter_highlight_lines = 0 endif - -if !exists('g:gitgutter_force_focusgained') - let g:gitgutter_force_focusgained = 0 -endif let s:highlight_lines = g:gitgutter_highlight_lines function! s:init() @@ -288,10 +284,6 @@ function! s:process_modified_and_removed(modifications, from_count, to_count, to call add(a:modifications, [a:to_line + offset - 1, 'modified_removed']) endfunction - -function! s:is_gvim_on_windows() - return has("gui_running") && (has("win16") || has("win32") || has("win64")) -endfunction " }}} " Sign processing {{{ @@ -473,7 +465,7 @@ endfunction augroup gitgutter autocmd! autocmd BufReadPost,BufWritePost,FileReadPost,FileWritePost * call GitGutter() - if !s:is_gvim_on_windows() || g:gitgutter_force_focusgained + if !has('gui_win32') autocmd FocusGained * call GitGutter() endif augroup END