diff options
| author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-30 21:48:51 -0400 |
|---|---|---|
| committer | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-05-31 21:06:10 -0400 |
| commit | 73e3669c7a8e2d4f63be17e0f93ee3c641f8806f (patch) | |
| tree | cfe3f6682065d1b85d468be7b07d20cad5c3c06a /src/nvim/testdir | |
| parent | 2a1bc8657a59a5af89a5ec2840a443c5a21e1c27 (diff) | |
| download | rneovim-73e3669c7a8e2d4f63be17e0f93ee3c641f8806f.tar.gz rneovim-73e3669c7a8e2d4f63be17e0f93ee3c641f8806f.tar.bz2 rneovim-73e3669c7a8e2d4f63be17e0f93ee3c641f8806f.zip | |
vim-patch:8.2.2911: pattern "\%V" does not match all of block selection
Problem: Pattern "\%V" does not match all of block selection. (Rick Howe)
Solution: Use the value of vi_curswant. (closes vim/vim#8285)
https://github.com/vim/vim/commit/e71c0ebe2cee4a4916c49e206733200299e4c065
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_search.vim | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_search.vim b/src/nvim/testdir/test_search.vim index b391663e0f..5ba24d047c 100644 --- a/src/nvim/testdir/test_search.vim +++ b/src/nvim/testdir/test_search.vim @@ -824,6 +824,26 @@ func Test_incsearch_search_dump() call delete('Xis_search_script') endfunc +func Test_hlsearch_block_visual_match() + CheckScreendump + + let lines =<< trim END + set hlsearch + call setline(1, ['aa', 'bbbb', 'cccccc']) + END + call writefile(lines, 'Xhlsearch_block') + let buf = RunVimInTerminal('-S Xhlsearch_block', {'rows': 9, 'cols': 60}) + + call term_sendkeys(buf, "G\<C-V>$kk\<Esc>") + sleep 100m + call term_sendkeys(buf, "/\\%V\<CR>") + sleep 100m + call VerifyScreenDump(buf, 'Test_hlsearch_block_visual_match', {}) + + call StopVimInTerminal(buf) + call delete('Xhlsearch_block') +endfunc + func Test_incsearch_substitute() CheckFunction test_override CheckOption incsearch |