mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Test for clearing the highlight
This commit is contained in:
parent
353c81af1e
commit
ab942b7ffb
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user