Patch 8.1.2007

10 views
Skip to first unread message

Bram Moolenaar

unread,
Sep 8, 2019, 8:08:39 AM9/8/19
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages