From 9ebb5c681b92c3c26171aa5514cd18a17dd62bad Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Sat, 20 Jun 2015 16:40:03 -0400 Subject: defaults: enable 'hlsearch' by default. #2859 Also update the documentation regarding the option. Re: https://github.com/neovim/neovim/issues/2676 --- test/functional/ui/searchhl_spec.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') 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") 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") screen:expect([[ some {1:^text} | -- cgit