mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
lua/executor: Fix crash when first string contains NUL and second not
This commit is contained in:
@@ -89,6 +89,11 @@ describe('vim.stricmp', function()
|
||||
eq(1, funcs.luaeval('vim.stricmp("c\\0", "b\\0")'))
|
||||
eq(1, funcs.luaeval('vim.stricmp("C\\0", "B\\0")'))
|
||||
|
||||
eq(1, funcs.luaeval('vim.stricmp("c\\0", "B")'))
|
||||
eq(1, funcs.luaeval('vim.stricmp("C\\0", "b")'))
|
||||
eq(1, funcs.luaeval('vim.stricmp("c\\0", "b")'))
|
||||
eq(1, funcs.luaeval('vim.stricmp("C\\0", "B")'))
|
||||
|
||||
eq(1, funcs.luaeval('vim.stricmp("\\0c", "\\0B")'))
|
||||
eq(1, funcs.luaeval('vim.stricmp("\\0C", "\\0b")'))
|
||||
eq(1, funcs.luaeval('vim.stricmp("\\0c", "\\0b")'))
|
||||
|
Reference in New Issue
Block a user