From 5a1a2ba783ba174567ff1c1044b9f0b01b61a0fb Mon Sep 17 00:00:00 2001 From: David Bürgin <676c7473@gmail.com> Date: Sat, 25 Apr 2015 20:01:33 +0200 Subject: vim-patch:7.4.537 #2509 Problem: Value of v:hlsearch reflects an internal variable. Solution: Make the value reflect whether search highlighting is actually displayed. (Christian Brabandt) https://github.com/vim/vim/releases/tag/v7-4-537 --- test/functional/legacy/101_hlsearch_spec.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/functional/legacy') diff --git a/test/functional/legacy/101_hlsearch_spec.lua b/test/functional/legacy/101_hlsearch_spec.lua index 3c44f02edb..4b8b1cef50 100644 --- a/test/functional/legacy/101_hlsearch_spec.lua +++ b/test/functional/legacy/101_hlsearch_spec.lua @@ -32,6 +32,9 @@ describe('v:hlsearch', function() execute('AddR') execute('/') execute('AddR') + execute('set nohls') + execute('/') + execute('AddR') execute('let r1=r[0][0]') -- I guess it is not guaranteed that screenattr outputs always the same character @@ -58,6 +61,7 @@ describe('v:hlsearch', function() 1:highlighted 0:not highlighted 1:highlighted + 0:not highlighted Vim(let):E706:]]) end) end) -- cgit