mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-15 06:43:52 -05:00
Test stage/revert is noop when outside a hunk.
This commit is contained in:
13
test/testHunkOutsideNoop.vim
Normal file
13
test/testHunkOutsideNoop.vim
Normal 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')
|
||||
|
||||
Reference in New Issue
Block a user