Skip to content

Commit bc04f2c

Browse files
committed
go to buffer end for TUI prompt append command
1 parent 867dd5d commit bc04f2c

File tree

1 file changed

+1
-0
lines changed
  • packages/opencode/src/cli/cmd/tui/component/prompt

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ export function Prompt(props: PromptProps) {
248248
})
249249

250250
sdk.event.on(TuiEvent.PromptAppend.type, (evt) => {
251+
input.gotoBufferEnd()
251252
input.insertText(evt.properties.text)
252253
})
253254

0 commit comments

Comments
 (0)