diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-27 22:40:42 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-27 22:40:42 +0200 |
commit | e67d546f3c691139e6d3d33f36724d98aec04c14 (patch) | |
tree | 8d990c67d29e4085dcb259b43dad3bf76833b05c /src/testdir/test_diffmode.vim | |
parent | 818078ddfbb8cc2546f697c5675a251d095722ec (diff) |
patch 7.4.2275v7.4.2275
Problem: ":diffoff!" does not remove filler lines.
Solution: Force a redraw and invalidate the cursor. (closes #1014)
Diffstat (limited to 'src/testdir/test_diffmode.vim')
-rw-r--r-- | src/testdir/test_diffmode.vim | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/testdir/test_diffmode.vim b/src/testdir/test_diffmode.vim index 7666594862..5de394de8e 100644 --- a/src/testdir/test_diffmode.vim +++ b/src/testdir/test_diffmode.vim @@ -202,3 +202,19 @@ func Test_diffget_diffput() bwipe! enew! endfunc + +func Test_diffoff() + enew! + call setline(1, ['Two', 'Three']) + let normattr = screenattr(1, 1) + diffthis + botright vert new + call setline(1, ['One', '', 'Two', 'Three']) + diffthis + redraw + diffoff! + redraw + call assert_equal(normattr, screenattr(1, 1)) + bwipe! + bwipe! +endfunc |