lua: fix infinite loop for vim.split on empty string (#12420)

This commit is contained in:
notomo
2020-06-03 08:31:43 +09:00
committed by GitHub
parent 91e41c8576
commit 60c581b35d
2 changed files with 2 additions and 1 deletions

View File

@@ -79,7 +79,7 @@ function vim.gsplit(s, sep, plain)
end
return function()
if done then
if done or s == '' then
return
end
if sep == '' then