diff options
| author | Jacob Richman <[email protected]> | 2025-08-19 13:41:08 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-08-19 20:41:08 +0000 |
| commit | 2143731f6efdf1aafff38ec249caf01a8bcd163e (patch) | |
| tree | b9f3a81148192632f65c0bcc21250da11fe12100 /packages/cli/src/ui/components/InputPrompt.tsx | |
| parent | ed1fc4ddb39a25fad2c9dd12a250959c050a6343 (diff) | |
fix(paste) incorrect handling of \\\n in pastes (#6532)
Diffstat (limited to 'packages/cli/src/ui/components/InputPrompt.tsx')
| -rw-r--r-- | packages/cli/src/ui/components/InputPrompt.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/InputPrompt.tsx b/packages/cli/src/ui/components/InputPrompt.tsx index dcfdace3..99a59c34 100644 --- a/packages/cli/src/ui/components/InputPrompt.tsx +++ b/packages/cli/src/ui/components/InputPrompt.tsx @@ -239,6 +239,12 @@ export const InputPrompt: React.FC<InputPromptProps> = ({ return; } + if (key.paste) { + // Ensure we never accidentally interpret paste as regular input. + buffer.handleInput(key); + return; + } + if (vimHandleInput && vimHandleInput(key)) { return; } |
