Fix cmd modifier tests for the new highlight

This commit is contained in:
KillTheMule 2017-10-29 18:21:26 +01:00
parent 7b4baad674
commit 4daf63871a

View File

@ -740,13 +740,13 @@ describe(":substitute, inccommand=split", function()
it("shows preview when cmd modifiers are present", function()
-- one modifier
feed(':keeppatterns %s/tw/to')
screen:expect([[too lines]], nil, nil, nil, true)
screen:expect([[{12:to}o lines]], nil, nil, nil, true)
feed('<Esc>')
screen:expect([[two lines]], nil, nil, nil, true)
-- multiple modifiers
feed(':keeppatterns silent %s/tw/to')
screen:expect([[too lines]], nil, nil, nil, true)
screen:expect([[{12:to}o lines]], nil, nil, nil, true)
feed('<Esc>')
screen:expect([[two lines]], nil, nil, nil, true)
@ -1219,13 +1219,13 @@ describe("inccommand=nosplit", function()
it("shows preview when cmd modifiers are present", function()
-- one modifier
feed(':keeppatterns %s/tw/to')
screen:expect([[too lines]], nil, nil, nil, true)
screen:expect([[{12:to}o lines]], nil, nil, nil, true)
feed('<Esc>')
screen:expect([[two lines]], nil, nil, nil, true)
-- multiple modifiers
feed(':keeppatterns silent %s/tw/to')
screen:expect([[too lines]], nil, nil, nil, true)
screen:expect([[{12:to}o lines]], nil, nil, nil, true)
feed('<Esc>')
screen:expect([[two lines]], nil, nil, nil, true)