mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
inccommand: Suppress error reporting when previewing commands
Closes #5912
This commit is contained in:
@@ -1201,6 +1201,40 @@ describe(":substitute, 'inccommand' with a failing expression", function()
|
||||
end
|
||||
end)
|
||||
|
||||
it('in the range does not error #5912', function()
|
||||
for _, case in pairs(cases) do
|
||||
refresh(case)
|
||||
feed(':100s/')
|
||||
|
||||
screen:expect([[
|
||||
Inc substitution on |
|
||||
two lines |
|
||||
|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
:100s/^ |
|
||||
]])
|
||||
|
||||
feed('<enter>')
|
||||
screen:expect([[
|
||||
Inc substitution on |
|
||||
two lines |
|
||||
^ |
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{15:~ }|
|
||||
{14:E16: Invalid range} |
|
||||
]])
|
||||
end
|
||||
end)
|
||||
|
||||
end)
|
||||
|
||||
describe("'inccommand' and :cnoremap", function()
|
||||
|
Reference in New Issue
Block a user