We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be15af8 commit 60a571eCopy full SHA for 60a571e
lua/blink/cmp/completion/trigger/context.lua
@@ -78,8 +78,10 @@ end
78
--- @return boolean
79
function context:within_query_bounds(cursor)
80
local row, col = cursor[1], cursor[2]
81
+ col = col + 1 -- Convert from 0-indexed to 1-indexed
82
+
83
local bounds = self.bounds
- return row == bounds.line_number and col >= bounds.start_col and col < (bounds.start_col + bounds.length)
84
+ return row == bounds.line_number and col >= bounds.start_col and col <= (bounds.start_col + bounds.length)
85
end
86
87
function context.get_mode()
0 commit comments