Skip to content

Commit 0b9c260

Browse files
committed
fix(context): fix off-by-one range for file mention
1 parent f1ec731 commit 0b9c260

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
@@ -261,7 +261,7 @@ local function format_file_part(path, prompt)
261261
file_part.source = {
262262
path = path,
263263
type = 'file',
264-
text = { start = pos, value = mention, ['end'] = pos + #mention - 1 },
264+
text = { start = pos, value = mention, ['end'] = pos + #mention },
265265
}
266266
end
267267
return file_part

0 commit comments

Comments
 (0)