diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2019-09-08 15:22:55 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-09-08 12:22:55 -0700 |
commit | 554566ccea09c680ada2a894ca875568515c48b7 (patch) | |
tree | 9944e4410b6badf1f07de53cacc3fab32d251e62 /src | |
parent | 288526ae73d07471a484e3f5bd9662b1cecf0884 (diff) | |
download | rneovim-554566ccea09c680ada2a894ca875568515c48b7.tar.gz rneovim-554566ccea09c680ada2a894ca875568515c48b7.tar.bz2 rneovim-554566ccea09c680ada2a894ca875568515c48b7.zip |
vim-patch:8.1.2007: no test for what 8.1.1926 fixes #10970
Problem: No test for what 8.1.1926 fixes.
Solution: Add a test case.
https://github.com/vim/vim/commit/fca068b977b1dc07b269e8c3e0ff7aa638357eff
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/testdir/test_highlight.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_highlight.vim b/src/nvim/testdir/test_highlight.vim index 78ec26fd05..d94eb7c3a2 100644 --- a/src/nvim/testdir/test_highlight.vim +++ b/src/nvim/testdir/test_highlight.vim @@ -552,6 +552,26 @@ func Test_cursorline_after_yank() call delete('Xtest_cursorline_yank') endfunc +" test for issue https://github.com/vim/vim/issues/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() if !CanRunVimInTerminal() throw 'Skipped: cannot make screendumps' |