aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKillTheMule <KillTheMule@users.noreply.github.com>2017-09-30 23:20:40 +0200
committerKillTheMule <KillTheMule@users.noreply.github.com>2017-10-29 18:11:32 +0100
commitab942b7ffb08ffa2f7f417916d8f0a509fd39af4 (patch)
treecf62e9601f4d4157060a85718d8f3aa00566d9fb
parent353c81af1e3cea8d32f834def9ffcbae86c5c727 (diff)
downloadrneovim-ab942b7ffb08ffa2f7f417916d8f0a509fd39af4.tar.gz
rneovim-ab942b7ffb08ffa2f7f417916d8f0a509fd39af4.tar.bz2
rneovim-ab942b7ffb08ffa2f7f417916d8f0a509fd39af4.zip
Test for clearing the highlight
-rw-r--r--test/functional/ui/inccommand_spec.lua22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/functional/ui/inccommand_spec.lua b/test/functional/ui/inccommand_spec.lua
index 9196e0548e..da0f05bf07 100644
--- a/test/functional/ui/inccommand_spec.lua
+++ b/test/functional/ui/inccommand_spec.lua
@@ -948,6 +948,28 @@ describe(":substitute, inccommand=split", function()
]])
end)
+ it('highlights nothing when there\'s no match', function()
+ feed('gg')
+ feed(':%s/Inx')
+ screen:expect([[
+ Inc substitution on |
+ two lines |
+ Inc substitution on |
+ two lines |
+ |
+ {11:[No Name] [+] }|
+ |
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ {15:~ }|
+ {10:[Preview] }|
+ :%s/Inx^ |
+ ]])
+ end)
+
it('previews correctly when previewhight is small', function()
feed_command('set cwh=3')
feed_command('set hls')