Skip to content

Commit d3fbdcd

Browse files
committed
fix(context): fix off-by-one range for file mention
1 parent 753ffc4 commit d3fbdcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/context.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ local function format_file_part(path, prompt)
259259
file_part.source = {
260260
path = path,
261261
type = 'file',
262-
text = { start = pos, value = mention, ['end'] = pos + #mention - 1 },
262+
text = { start = pos, value = mention, ['end'] = pos + #mention },
263263
}
264264
end
265265
return file_part

0 commit comments

Comments
 (0)