Skip to content

Commit 269bad0

Browse files
committed
chore: use real separator to calc offset
1 parent e36ed42 commit 269bad0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/opencode/ui/navigation.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function M.goto_message_by_id(message_id)
3434
if not rendered_msg or not rendered_msg.line_start then
3535
return
3636
end
37-
local sep_offset = 2
37+
local sep_offset = #require('opencode.ui.formatter').separator
3838
vim.api.nvim_win_set_cursor(win, { rendered_msg.line_start + sep_offset, 0 })
3939
end
4040

0 commit comments

Comments
 (0)