aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGhjuvan Lacambre <code@lacamb.re>2021-04-04 20:43:22 +0200
committerGitHub <noreply@github.com>2021-04-04 14:43:22 -0400
commit0f187700ab1437e949f03d6915df7c76f8287304 (patch)
tree235da971e8133a11ad3b3aa3ef077370564521ea /test
parent76f5c72860b237d66c949dcdeb6967047810b956 (diff)
downloadrneovim-0f187700ab1437e949f03d6915df7c76f8287304.tar.gz
rneovim-0f187700ab1437e949f03d6915df7c76f8287304.tar.bz2
rneovim-0f187700ab1437e949f03d6915df7c76f8287304.zip
vim-patch:8.2.0295: highlighting for :s wrong when using different separator (#14286)
Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes vim/vim#5665) https://github.com/vim/vim/commit/c036e87bd7001238ab7cc5d9e30e59bbf989a5fd
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/searchhl_spec.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua
index 656f613c6a..5540b3c2dc 100644
--- a/test/functional/ui/searchhl_spec.lua
+++ b/test/functional/ui/searchhl_spec.lua
@@ -507,7 +507,21 @@ describe('search highlighting', function()
{1:~ }|
:syntax keyword MyGroup special |
]])
+ end)
+ it('highlights entire pattern on :%g@a/b', function()
+ command('set inccommand=nosplit')
+ feed('ia/b/c<Esc>')
+ feed(':%g@a/b')
+ screen:expect([[
+ {3:a/b}/c |
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ {1:~ }|
+ :%g@a/b^ |
+ ]])
end)
end)