mirror of
https://github.com/QwenLM/qwen-code.git
synced 2025-12-20 16:57:46 +00:00
fix(paste) incorrect handling of \\\n in pastes (#6532)
This commit is contained in:
@@ -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' ||
|
||||
|
||||
Reference in New Issue
Block a user