Skip to content

Commit

Permalink
fix: unicode range when checking if char is keyword
Browse files Browse the repository at this point in the history
Closes #878
  • Loading branch information
Saghen committed Jan 3, 2025
1 parent 75d7a48 commit 100d3c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/blink/cmp/completion/trigger/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ function trigger.is_keyword_character(char)
-- special case for hyphen, since we don't consider a lone hyphen to be a keyword
if char == '-' then return true end

local keyword_start_col, keyword_end_col = require('blink.cmp.fuzzy').get_keyword_range(char, 1, 'prefix')
local keyword_start_col, keyword_end_col = require('blink.cmp.fuzzy').get_keyword_range(char, #char, 'prefix')
return keyword_start_col ~= keyword_end_col
end

Expand Down

0 comments on commit 100d3c8

Please sign in to comment.