We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 57abdb8 commit 3cb084cCopy full SHA for 3cb084c
lua/blink/cmp/fuzzy/init.lua
@@ -83,6 +83,11 @@ function fuzzy.get_query()
83
cmp_config.keyword_regex,
84
cmp_config.exclude_from_prefix_regex
85
)
86
+ -- Since sub(1, 1) returns a single char string, we need to check if that single char matches
87
+ -- and otherwise return an empty string
88
+ if range[1] == range[2] and line:sub(range[1] + 1, range[1] + 1):match(cmp_config.keyword_regex) == nil then
89
+ return ''
90
+ end
91
return string.sub(line, range[1] + 1, range[2] + 1)
92
end
93
0 commit comments