Patch 8.1.2007
Problem: No test for what 8.1.1926 fixes.
Solution: Add a test case.
Files: src/testdir/test_highlight.vim
*** ../vim-8.1.2006/src/testdir/test_highlight.vim 2019-08-07
23:07:03.960858821 +0200
--- src/testdir/test_highlight.vim 2019-09-08 13:55:57.762237897 +0200
***************
*** 552,557 ****
--- 552,577 ----
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
*** ../vim-8.1.2006/src/version.c 2019-09-07 23:25:05.708270305 +0200
--- src/version.c 2019-09-08 13:57:57.262063447 +0200
***************
*** 759,760 ****
--- 759,762 ----
{ /* Add new patch number below this line */
+ /**/
+ 2007,
/**/
--
'Psychologist' -- Someone who looks at everyone else when
an attractive woman enters the room.
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/201909081208.x88C8Vjv020251%40masaka.moolenaar.net.