mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix: set cursor offset for multi-line history items
This commit is contained in:
parent
dd21dd7ae0
commit
38b567a2f1
1 changed files with 1 additions and 0 deletions
|
|
@ -775,6 +775,7 @@ export function Prompt(props: PromptProps) {
|
|||
setStore("prompt", item)
|
||||
setStore("mode", item.mode ?? "normal")
|
||||
restoreExtmarksFromParts(item.parts)
|
||||
input.cursorOffset = input.plainText.length
|
||||
history.reset()
|
||||
}}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue