diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2015-06-20 16:40:03 -0400 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-06-20 16:40:03 -0400 |
commit | 9ebb5c681b92c3c26171aa5514cd18a17dd62bad (patch) | |
tree | 09d51fae3c962dfc37fbafa96c50c8ec4ef71b1a /test/functional/ui/searchhl_spec.lua | |
parent | ffeffcb6cd056c4cdab79bb97c3cb1e42f68d906 (diff) | |
download | rneovim-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.lua | 6 |
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} | |