Skip to content

Commit 160b687

Browse files
committed
fix: keyword range "full" when covering end of line
Closes #268
1 parent e88da6a commit 160b687

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/blink/cmp/lib/utils.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ function utils.get_regex_around_cursor(range, regex, exclude_from_prefix_regex)
6262

6363
-- Search forward for the end of the word if configured
6464
if range == 'full' then
65-
while start_col + length < #line do
65+
while start_col + length <= #line do
6666
local col = start_col + length
6767
local char = line:sub(col, col)
6868
if char:match(regex) == nil then break end

0 commit comments

Comments
 (0)