aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bürgin <676c7473@gmail.com>2015-04-25 20:01:33 +0200
committerJustin M. Keyes <justinkz@gmail.com>2015-04-27 02:10:57 -0400
commit5a1a2ba783ba174567ff1c1044b9f0b01b61a0fb (patch)
tree341ddc468821cc469e0ae894f8de30d564a5795d /test
parentaf863d46a99aa5d14ff7524dbf17764520554f2b (diff)
downloadrneovim-5a1a2ba783ba174567ff1c1044b9f0b01b61a0fb.tar.gz
rneovim-5a1a2ba783ba174567ff1c1044b9f0b01b61a0fb.tar.bz2
rneovim-5a1a2ba783ba174567ff1c1044b9f0b01b61a0fb.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/functional/legacy/101_hlsearch_spec.lua4
1 files changed, 4 insertions, 0 deletions
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)