Support paste markers split across writes. (#11977)

This commit is contained in:
Tommaso Sciortino
2025-10-24 18:52:03 -07:00
committed by GitHub
parent 81006605c8
commit 145e099ca5
5 changed files with 281 additions and 68 deletions

View File

@@ -1331,7 +1331,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x1B');
await wait();
await wait(100);
expect(props.buffer.setText).toHaveBeenCalledWith('');
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
@@ -1372,7 +1372,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x1B');
await wait();
await wait(100);
expect(props.setShellModeActive).toHaveBeenCalledWith(false);
unmount();
@@ -1392,7 +1392,7 @@ describe('InputPrompt', () => {
await wait();
stdin.write('\x1B');
await wait();
await wait(100);
expect(mockCommandCompletion.resetCompletionState).toHaveBeenCalled();
unmount();

View File

@@ -1348,7 +1348,7 @@ describe('SettingsDialog', () => {
// Press Escape to exit
stdin.write('\u001B');
await wait();
await wait(100);
expect(onSelect).toHaveBeenCalledWith(undefined, 'User');