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/shared | |
| parent | ed1fc4ddb39a25fad2c9dd12a250959c050a6343 (diff) | |
fix(paste) incorrect handling of \\\n in pastes (#6532)
Diffstat (limited to 'packages/cli/src/ui/components/shared')
| -rw-r--r-- | packages/cli/src/ui/components/shared/text-buffer.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/packages/cli/src/ui/components/shared/text-buffer.ts b/packages/cli/src/ui/components/shared/text-buffer.ts index 84bbdc9b..93f6e360 100644 --- a/packages/cli/src/ui/components/shared/text-buffer.ts +++ b/packages/cli/src/ui/components/shared/text-buffer.ts @@ -1833,6 +1833,13 @@ export function useTextBuffer({ }): void => { const { sequence: input } = key; + if (key.paste) { + // Do not do any other processing on pastes so ensure we handle them + // before all other cases. + insert(input, { paste: key.paste }); + return; + } + if ( key.name === 'return' || input === '\r' || |
