mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 09:12:07 +00:00
lua: fix behavior when split empty string (#12429)
* lua: fix behavior when split empty string * test: lsp.util.apply_text_edits with an empty edit
This commit is contained in:
@@ -79,7 +79,7 @@ function vim.gsplit(s, sep, plain)
|
||||
end
|
||||
|
||||
return function()
|
||||
if done or s == '' then
|
||||
if done or (s == '' and sep == '') then
|
||||
return
|
||||
end
|
||||
if sep == '' then
|
||||
|
Reference in New Issue
Block a user