Skip to content

Commit f0b8299

Browse files
committed
bugfix
1 parent 7ead4bf commit f0b8299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/easycomplete/cmdline.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ this.REG_CMP_HANDLER = {
241241
get_cmp_items = function()
242242
if vim.g.easycomplete_cmdline_pattern == "/" then
243243
local typing_word = this.get_typing_word()
244-
local ret = this.get_buf_keywords(typing_word)
244+
local ret = this.get_buf_keywords(string.sub(typing_word, 1, 1))
245245
return ret
246246
elseif vim.g.easycomplete_cmdline_pattern == ":" then
247247
-- command 共有 670 多个,因为太重要了,这里不做过滤了,返回全部

0 commit comments

Comments
 (0)