We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ead4bf commit f0b8299Copy full SHA for f0b8299
lua/easycomplete/cmdline.lua
@@ -241,7 +241,7 @@ this.REG_CMP_HANDLER = {
241
get_cmp_items = function()
242
if vim.g.easycomplete_cmdline_pattern == "/" then
243
local typing_word = this.get_typing_word()
244
- local ret = this.get_buf_keywords(typing_word)
+ local ret = this.get_buf_keywords(string.sub(typing_word, 1, 1))
245
return ret
246
elseif vim.g.easycomplete_cmdline_pattern == ":" then
247
-- command 共有 670 多个,因为太重要了,这里不做过滤了,返回全部
0 commit comments