refactor: improve large text paste placeholder (#17269)

Co-authored-by: Jack Wotherspoon <jackwoth@google.com>
This commit is contained in:
Jacob Richman
2026-01-22 07:05:38 -08:00
committed by GitHub
parent 0a173cac46
commit 56f9ab025a
4 changed files with 125 additions and 122 deletions

View File

@@ -177,7 +177,6 @@ describe('InputPrompt', () => {
transformationsByLine: [],
getOffset: vi.fn().mockReturnValue(0),
pastedContent: {},
addPastedContent: vi.fn().mockReturnValue('[Pasted Text: 6 lines]'),
} as unknown as TextBuffer;
mockShellHistory = {
@@ -1825,6 +1824,7 @@ describe('InputPrompt', () => {
afterEach(() => {
vi.useRealTimers();
vi.restoreAllMocks();
});
it('should prevent auto-submission immediately after an unsafe paste', async () => {