fix(usercmd): also check for whitespace after escaped character (#19942)

This commit is contained in:
zeertzjq
2022-08-25 17:57:32 +08:00
committed by GitHub
parent f0658fd552
commit 274e1122ad
2 changed files with 8 additions and 8 deletions

View File

@@ -114,8 +114,8 @@ describe('nvim_create_user_command', function()
]]
eq({
args = [[this is a\ test]],
fargs = {"this", "is", "a test"},
args = [[this\ is a\ test]],
fargs = {"this ", "is", "a test"},
bang = false,
line1 = 1,
line2 = 1,
@@ -144,7 +144,7 @@ describe('nvim_create_user_command', function()
count = 2,
reg = "",
}, exec_lua [=[
vim.api.nvim_command([[CommandWithLuaCallback this is a\ test]])
vim.api.nvim_command([[CommandWithLuaCallback this\ is a\ test]])
return result
]=])