From be55719488f44640b93be96b302a7b6472b0b80b Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 8 Feb 2016 14:25:36 +0000 Subject: [PATCH] Revert 0416f20. --- autoload/gitgutter.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/gitgutter.vim b/autoload/gitgutter.vim index e5d52d1..02c3801 100644 --- a/autoload/gitgutter.vim +++ b/autoload/gitgutter.vim @@ -183,7 +183,7 @@ function! gitgutter#stage_hunk() if gitgutter#utility#is_active() " Ensure the working copy of the file is up to date. " It doesn't make sense to stage a hunk otherwise. - noautocmd silent write + silent write if empty(gitgutter#hunk#current_hunk()) call gitgutter#utility#warn('cursor is not in a hunk') @@ -203,7 +203,7 @@ function! gitgutter#revert_hunk() if gitgutter#utility#is_active() " Ensure the working copy of the file is up to date. " It doesn't make sense to stage a hunk otherwise. - noautocmd silent write + silent write if empty(gitgutter#hunk#current_hunk()) call gitgutter#utility#warn('cursor is not in a hunk') @@ -221,7 +221,7 @@ endfunction function! gitgutter#preview_hunk() if gitgutter#utility#is_active() - noautocmd silent write + silent write if empty(gitgutter#hunk#current_hunk()) call gitgutter#utility#warn('cursor is not in a hunk')