aboutsummaryrefslogtreecommitdiff
path: root/test/functional/editor/completion_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-06-18 12:02:31 +0800
committerGitHub <noreply@github.com>2024-06-18 12:02:31 +0800
commitb0c336eaf8e7dd0e52e08195f46fd309fc138ea1 (patch)
tree66aafb47719eb5e4b54ae4a9b3ffeb57222b6d4a /test/functional/editor/completion_spec.lua
parent1a1c766049826b6049610edda8f72eac1f75b38d (diff)
downloadrneovim-b0c336eaf8e7dd0e52e08195f46fd309fc138ea1.tar.gz
rneovim-b0c336eaf8e7dd0e52e08195f46fd309fc138ea1.tar.bz2
rneovim-b0c336eaf8e7dd0e52e08195f46fd309fc138ea1.zip
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.
Diffstat (limited to 'test/functional/editor/completion_spec.lua')
-rw-r--r--test/functional/editor/completion_spec.lua12
1 files changed, 2 insertions, 10 deletions
diff --git a/test/functional/editor/completion_spec.lua b/test/functional/editor/completion_spec.lua
index b42310fa81..405af5fcfd 100644
--- a/test/functional/editor/completion_spec.lua
+++ b/test/functional/editor/completion_spec.lua
@@ -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^ |
]])