Skip to content

Commit 38b567a

Browse files
committed
fix: set cursor offset for multi-line history items
1 parent dd21dd7 commit 38b567a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • packages/opencode/src/cli/cmd/tui/component/prompt

‎packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,7 @@ export function Prompt(props: PromptProps) {
775775
setStore("prompt", item)
776776
setStore("mode", item.mode ?? "normal")
777777
restoreExtmarksFromParts(item.parts)
778+
input.cursorOffset = input.plainText.length
778779
history.reset()
779780
}}
780781
/>

0 commit comments

Comments
 (0)