Make PASTE_WORKAROUND the default. (#12008)

This commit is contained in:
Tommaso Sciortino
2025-10-24 19:55:13 -07:00
committed by GitHub
parent ce26b58f09
commit ef70e63230
4 changed files with 11 additions and 36 deletions
@@ -752,7 +752,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x03'); // Ctrl+C character
await wait();
await wait(60);
expect(props.buffer.setText).toHaveBeenCalledWith('');
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
@@ -766,7 +766,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x03'); // Ctrl+C character
await wait();
await wait(60);
expect(props.buffer.setText).not.toHaveBeenCalled();
unmount();
@@ -940,7 +940,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x1B[200~pasted text\x1B[201~');
await wait();
await wait(60);
expect(mockBuffer.handleInput).toHaveBeenCalledWith(
expect.objectContaining({
@@ -1331,7 +1331,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x1B');
await wait(100);
await wait(60);
expect(props.buffer.setText).toHaveBeenCalledWith('');
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
@@ -1392,7 +1392,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x1B');
await wait(100);
await wait(60);
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
unmount();
@@ -1348,7 +1348,7 @@ describe('SettingsDialog', () => {
// Press Escape to exit
stdin.write('\u001B');
await wait(100);
await wait(60);
expect(onSelect).toHaveBeenCalledWith(undefined, 'User');