Mercurial > vim
diff src/testdir/test_hlsearch.vim @ 14662:04c168a6d998 v8.1.0344
patch 8.1.0344: 'hlsearch' highlighting has a gap after /$
commit https://github.com/vim/vim/commit/7ee3f15b21042cb8148980ea486137eaf1b55bcd
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 2 15:07:28 2018 +0200
patch 8.1.0344: 'hlsearch' highlighting has a gap after /$
Problem: 'hlsearch' highlighting has a gap after /$.
Solution: Remove suspicious code. (Ricky Zhou, closes https://github.com/vim/vim/issues/3400)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 02 Sep 2018 15:15:07 +0200 |
parents | ac20f71e8aa4 |
children | 63b02fcf1361 |
line wrap: on
line diff
--- a/src/testdir/test_hlsearch.vim +++ b/src/testdir/test_hlsearch.vim @@ -4,7 +4,6 @@ function! Test_hlsearch() new call setline(1, repeat(['aaa'], 10)) set hlsearch nolazyredraw - let r=[] " redraw is needed to make hlsearch highlight the matches exe "normal! /aaa\<CR>" | redraw let r1 = screenattr(1, 1) @@ -51,3 +50,16 @@ func Test_hlsearch_hangs() set nohlsearch redrawtime& bwipe! endfunc + +func Test_hlsearch_eol_highlight() + new + call append(1, repeat([''], 9)) + set hlsearch nolazyredraw + exe "normal! /$\<CR>" | redraw + let attr = screenattr(1, 1) + for row in range(2, 10) + call assert_equal(attr, screenattr(row, 1), 'in line ' . row) + endfor + set nohlsearch + bwipe! +endfunc