Fix: TUI single-line paste cursor position (#7277)
This commit is contained in:
@@ -915,7 +915,6 @@ export function Prompt(props: PromptProps) {
|
|||||||
// Force layout update and render for the pasted content
|
// Force layout update and render for the pasted content
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
input.getLayoutNode().markDirty()
|
input.getLayoutNode().markDirty()
|
||||||
input.gotoBufferEnd()
|
|
||||||
renderer.requestRender()
|
renderer.requestRender()
|
||||||
}, 0)
|
}, 0)
|
||||||
}}
|
}}
|
||||||
|
|||||||
Reference in New Issue
Block a user