Handle &write option being off (e.g. vim -m FILE).

See #407.
This commit is contained in:
Andy Stewart
2018-02-12 16:19:01 +00:00
parent 8da5b64868
commit d137753182
2 changed files with 18 additions and 0 deletions

View File

@@ -424,3 +424,16 @@ function Test_undo_nearby_hunk()
call assert_equal(expected, s:git_diff())
endfunction
function Test_write_option()
set nowrite
normal ggo*
doautocmd CursorHold
let expected = ["line=2 id=3000 name=GitGutterLineAdded"]
call assert_equal(expected, s:signs('fixture.txt'))
set write
endfunction