refactor(lua): remove unnecessary strlen() in nlua_expand_pat() (#29388)

Also change the initial value of `status` to `FAIL`, as that'll avoid
unnecessary assignments.
This commit is contained in:
zeertzjq
2024-06-18 12:02:31 +08:00
committed by GitHub
parent 1a1c766049
commit b0c336eaf8
2 changed files with 8 additions and 20 deletions

View File

@@ -816,22 +816,14 @@ describe('completion', function()
feed(':lua math.a<Tab>')
screen:expect([[
|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|*5
{100:abs}{3: acos asin atan atan2 }|
:lua math.abs^ |
]])
feed('<Tab>')
screen:expect([[
|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|
{1:~ }|*5
{3:abs }{100:acos}{3: asin atan atan2 }|
:lua math.acos^ |
]])