fix(tui): capture composer padding before prompt

Add an explicit mouse capture cell over the left padding before the prompt glyph. Drags starting there now delegate to the composer input at offset 0 instead of starting terminal-level selection over the prompt chrome.

Made-with: Cursor
This commit is contained in:
Brooklyn Nicholson
2026-04-27 16:55:21 -05:00
parent 97943bcc09
commit b842272b85

View File

@@ -205,6 +205,16 @@ const ComposerPane = memo(function ComposerPane({
))}
<Box position="relative">
<Box
height={inputHeight}
left={-1}
onMouseDown={captureInputDrag}
onMouseDrag={dragIntoInput}
onMouseUp={() => inputMouseRef.current?.end()}
position="absolute"
width={1}
/>
<Box onMouseDown={captureInputDrag} onMouseDrag={dragIntoInput} onMouseUp={() => inputMouseRef.current?.end()} width={pw}>
{sh ? (
<Text color={ui.theme.color.shellDollar}>$ </Text>