Преглед изворни кода

Fix: TUI single-line paste cursor position (#7277)

Octane пре 8 месеци
родитељ
комит
0c0057a7de
1 измењених фајлова са 0 додато и 1 уклоњено
  1. 0 1
      packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

+ 0 - 1
packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

@@ -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)
               }}
               }}