diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-08 14:07:47 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-08 14:07:47 +0200 |
commit | fca068b977b1dc07b269e8c3e0ff7aa638357eff (patch) | |
tree | 542b7d1de7162710fac0e1365e4d2833df9cc2be /src | |
parent | 6cdce2a00369202b4d956884068f6631ee99aca4 (diff) |
patch 8.1.2007: no test for what 8.1.1926 fixesv8.1.2007
Problem: No test for what 8.1.1926 fixes.
Solution: Add a test case.
Diffstat (limited to 'src')
-rw-r--r-- | src/testdir/test_highlight.vim | 20 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/testdir/test_highlight.vim b/src/testdir/test_highlight.vim index 3d640bbe83..27d7641e44 100644 --- a/src/testdir/test_highlight.vim +++ b/src/testdir/test_highlight.vim @@ -552,6 +552,26 @@ func Test_cursorline_after_yank() call delete('Xtest_cursorline_yank') endfunc +" test for issue #4862 +func Test_put_before_cursorline() + new + only! + call setline(1, 'A') + redraw + let std_attr = screenattr(1, 1) + set cursorline + redraw + let cul_attr = screenattr(1, 1) + normal yyP + redraw + " Line 1 has cursor so it should be highlighted with CursorLine. + call assert_equal(cul_attr, screenattr(1, 1)) + " And CursorLine highlighting from the second line should be gone. + call assert_equal(std_attr, screenattr(2, 1)) + set nocursorline + bwipe! +endfunc + func Test_cursorline_with_visualmode() CheckScreendump diff --git a/src/version.c b/src/version.c index 4f9e3462a4..f0fe0591f5 100644 --- a/src/version.c +++ b/src/version.c @@ -758,6 +758,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2007, +/**/ 2006, /**/ 2005, |