aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/searchhl_spec.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/functional/ui/searchhl_spec.lua b/test/functional/ui/searchhl_spec.lua
index 7bc66942cb..d04329e1e2 100644
--- a/test/functional/ui/searchhl_spec.lua
+++ b/test/functional/ui/searchhl_spec.lua
@@ -25,7 +25,8 @@ describe('search highlighting', function()
screen:set_default_attr_ignore( {{bold=true, foreground=hl_colors.NonText}} )
end)
- it('is off by default', function()
+ it('is disabled by ":set nohlsearch"', function()
+ execute('set nohlsearch')
insert("some text\nmore text")
feed("gg/text<cr>")
screen:expect([[
@@ -40,13 +41,14 @@ describe('search highlighting', function()
end)
it('works', function()
- execute('set hlsearch')
insert([[
some text
more textstuff
stupidtexttextstuff
a text word
]])
+
+ -- 'hlsearch' is enabled by default. #2859
feed("gg/text<cr>")
screen:expect([[
some {1:^text} |