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:
notomo
2020-06-04 21:48:48 +09:00
committed by GitHub
parent b807de36d4
commit ac5a3f2c56
3 changed files with 4 additions and 2 deletions

View File

@@ -244,6 +244,7 @@ describe('lua stdlib', function()
{ "axaby", "ab?", false, { '', 'x', 'y' } },
{ "f v2v v3v w2w ", "([vw])2%1", false, { 'f ', ' v3v ', ' ' } },
{ "", "", false, {} },
{ "", "a", false, { '' } },
{ "x*yz*oo*l", "*", true, { 'x', 'yz', 'oo', 'l' } },
}