From 68715a1903b1da39f1cc6a358bf2a6a8627036dc Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 8 Feb 2016 15:27:34 +0000 Subject: [PATCH] Tweak comments. --- autoload/gitgutter.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autoload/gitgutter.vim b/autoload/gitgutter.vim index 02c3801..46c2243 100644 --- a/autoload/gitgutter.vim +++ b/autoload/gitgutter.vim @@ -183,6 +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. + " This also updates the signs and hunks. silent write if empty(gitgutter#hunk#current_hunk()) @@ -203,6 +204,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. + " This also updates the signs and hunks. silent write if empty(gitgutter#hunk#current_hunk()) @@ -221,6 +223,9 @@ endfunction function! gitgutter#preview_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. + " This also updates the signs and hunks. silent write if empty(gitgutter#hunk#current_hunk())