Skip to content

Commit ab91312

Browse files
committed
fix(context): @this context wrongly used 0-based cols
1 parent 82958e2 commit ab91312

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/opencode/context/builtins.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ function M.this(context)
77
local from = { context.range.from[1] }
88
local to = { context.range.to[1] }
99
if context.range.kind ~= "line" then
10-
from[2] = context.range.from[2]
11-
to[2] = context.range.to[2]
10+
from[2] = context.range.from[2] + 1
11+
to[2] = context.range.to[2] + 1
1212
end
1313
return require("opencode.context").format({ buf = context.buf, from = from, to = to })
1414
else

0 commit comments

Comments
 (0)