mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
fix(tui): resize textarea if text inserted via appendPrompt TUI API (#5983)
This commit is contained in:
parent
a1c0bae3af
commit
fe3144ce5b
1 changed files with 5 additions and 0 deletions
|
|
@ -310,6 +310,11 @@ export function Prompt(props: PromptProps) {
|
|||
|
||||
sdk.event.on(TuiEvent.PromptAppend.type, (evt) => {
|
||||
input.insertText(evt.properties.text)
|
||||
setTimeout(() => {
|
||||
input.getLayoutNode().markDirty()
|
||||
input.gotoBufferEnd()
|
||||
renderer.requestRender()
|
||||
}, 0)
|
||||
})
|
||||
|
||||
createEffect(() => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue