diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-09-02 15:07:28 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-09-02 15:07:28 +0200 |
commit | 7ee3f15b21042cb8148980ea486137eaf1b55bcd (patch) | |
tree | a7f6dd33a377f7cd245c45eb519c90d548218243 /src/testdir/test_hlsearch.vim | |
parent | 3c5b8cd25485183ff7ce737e4dac069541210f6c (diff) | |
download | vim-git-7ee3f15b21042cb8148980ea486137eaf1b55bcd.tar.gz |
patch 8.1.0344: 'hlsearch' highlighting has a gap after /$v8.1.0344
Problem: 'hlsearch' highlighting has a gap after /$.
Solution: Remove suspicious code. (Ricky Zhou, closes #3400)
Diffstat (limited to 'src/testdir/test_hlsearch.vim')
-rw-r--r-- | src/testdir/test_hlsearch.vim | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/testdir/test_hlsearch.vim b/src/testdir/test_hlsearch.vim index db7a937da..0b5944059 100644 --- 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 |