aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/searchhl_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-06-20 16:40:03 -0400
committerJustin M. Keyes <justinkz@gmail.com>2015-06-20 16:40:03 -0400
commit9ebb5c681b92c3c26171aa5514cd18a17dd62bad (patch)
tree09d51fae3c962dfc37fbafa96c50c8ec4ef71b1a /test/functional/ui/searchhl_spec.lua
parentffeffcb6cd056c4cdab79bb97c3cb1e42f68d906 (diff)
downloadrneovim-9ebb5c681b92c3c26171aa5514cd18a17dd62bad.tar.gz
rneovim-9ebb5c681b92c3c26171aa5514cd18a17dd62bad.tar.bz2
rneovim-9ebb5c681b92c3c26171aa5514cd18a17dd62bad.zip
defaults: enable 'hlsearch' by default. #2859
Also update the documentation regarding the option. Re: https://github.com/neovim/neovim/issues/2676
Diffstat (limited to 'test/functional/ui/searchhl_spec.lua')
-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} |