diff options
author | Ricky Zhou <ricky@rzhou.org> | 2018-08-26 21:23:59 -0700 |
---|---|---|
committer | Ricky Zhou <ricky@rzhou.org> | 2018-09-03 03:13:03 -0700 |
commit | 6c3b0fb831da89aac679da69a0fd5df43c27af80 (patch) | |
tree | 2a81040bee25f4fa53983cf3adfe8b643782839f /src/nvim/testdir | |
parent | f62d4865d88de0bd60218ecb3e08d9f3c772e12e (diff) | |
download | rneovim-6c3b0fb831da89aac679da69a0fd5df43c27af80.tar.gz rneovim-6c3b0fb831da89aac679da69a0fd5df43c27af80.tar.bz2 rneovim-6c3b0fb831da89aac679da69a0fd5df43c27af80.zip |
vim-patch:8.1.0344: 'hlsearch' highlighting has a gap after /$
Problem: 'hlsearch' highlighting has a gap after /$.
Solution: Remove suspicious code. (Ricky Zhou, closes vim/vim#3400)
https://github.com/vim/vim/commit/7ee3f15b21042cb8148980ea486137eaf1b55bcd
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r-- | src/nvim/testdir/test_hlsearch.vim | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/nvim/testdir/test_hlsearch.vim b/src/nvim/testdir/test_hlsearch.vim index 066fdd0250..1fc7b04f88 100644 --- a/src/nvim/testdir/test_hlsearch.vim +++ b/src/nvim/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) @@ -32,3 +31,16 @@ function! Test_hlsearch() call getchar(1) enew! endfunction + +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 |