Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9169fb8

Browse files
authored
fix(lua): double entries in :lua completion#19410
`:lua vim.ls<tab>` would list `lsp` twice.
1 parent9f4b19b commit9169fb8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎runtime/lua/vim/_editor.lua‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ function vim._expand_pat(pat, env)
614614
localfunctioninsert_keys(obj)
615615
fork,_inpairs(obj)do
616616
iftype(k)=='string'andstring.sub(k,1,string.len(match_part))==match_partthen
617-
table.insert(keys,k)
617+
keys[k]=true
618618
end
619619
end
620620
end
@@ -630,6 +630,7 @@ function vim._expand_pat(pat, env)
630630
insert_keys(vim._submodules)
631631
end
632632

633+
keys=vim.tbl_keys(keys)
633634
table.sort(keys)
634635

635636
returnkeys,#prefix_match_pat

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp