From ab942b7ffb08ffa2f7f417916d8f0a509fd39af4 Mon Sep 17 00:00:00 2001 From: KillTheMule Date: Sat, 30 Sep 2017 23:20:40 +0200 Subject: Test for clearing the highlight --- test/functional/ui/inccommand_spec.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/functional/ui') 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') -- cgit