Test stage/revert is noop when outside a hunk.

This commit is contained in:
Andy Stewart
2015-03-05 12:57:07 +01:00
parent 186dada663
commit a86a32c530
5 changed files with 17 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
--- Signs ---

View File

@@ -0,0 +1,2 @@
--- Signs ---

View File

@@ -0,0 +1,13 @@
source helper.vim
call Setup()
normal 5G
execute 'GitGutterStageHunk'
call DumpSigns('hunkOutsideNoopStageSigns')
call DumpGitDiffStaged('hunkHunkOutsideNoopStageGitDiffStaged')
execute 'GitGutterRevertHunk'
call DumpSigns('hunkOutsideNoopRevertSigns')
call DumpGitDiffStaged('hunkHunkOutsideNoopRevertGitDiffStaged')