mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 18:36:30 +00:00
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.
fca068b977
This commit is contained in:

committed by
Justin M. Keyes

parent
288526ae73
commit
554566ccea
@@ -552,6 +552,26 @@ func Test_cursorline_after_yank()
|
|||||||
call delete('Xtest_cursorline_yank')
|
call delete('Xtest_cursorline_yank')
|
||||||
endfunc
|
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()
|
func Test_cursorline_with_visualmode()
|
||||||
if !CanRunVimInTerminal()
|
if !CanRunVimInTerminal()
|
||||||
throw 'Skipped: cannot make screendumps'
|
throw 'Skipped: cannot make screendumps'
|
||||||
|
Reference in New Issue
Block a user