mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
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:
@@ -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^ |
|
||||
]])
|
||||
|
||||
Reference in New Issue
Block a user