mirror of
https://github.com/airblade/vim-gitgutter.git
synced 2025-11-10 04:23:46 -05:00
Ensure nested calls do not overwrite value of original shell.
See #379.
This commit is contained in:
@@ -1,7 +1,13 @@
|
||||
source helper.vim
|
||||
call Setup()
|
||||
|
||||
set shell=foo
|
||||
|
||||
normal 5Gi*
|
||||
execute 'GitGutterStageHunk'
|
||||
|
||||
call assert_equal('foo', &shell) " NOTE: current test runner ignores v:errors so this line has no effect
|
||||
|
||||
set shell=/bin/bash
|
||||
call DumpSigns('hunkStageSigns')
|
||||
call DumpGitDiffStaged('hunkStageGitDiff')
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
source helper.vim
|
||||
call Setup()
|
||||
|
||||
set shell=foo
|
||||
|
||||
normal 5Gi*
|
||||
execute 'GitGutterUndoHunk'
|
||||
|
||||
call assert_equal('foo', &shell) " NOTE: current test runner ignores v:errors so this line has no effect
|
||||
set shell=/bin/bash
|
||||
call DumpSigns('hunkUndoSigns')
|
||||
call DumpGitDiffStaged('hunkUndoGitDiff')
|
||||
|
||||
Reference in New Issue
Block a user