mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-09 04:41:19 -07:00
feat: replace large text pastes with [Pasted Text: X lines] placeholder (#16422)
This commit is contained in:
@@ -34,6 +34,7 @@ const createTestState = (
|
||||
viewportHeight: 24,
|
||||
transformationsByLine: [[]],
|
||||
visualLayout: defaultVisualLayout,
|
||||
pastedContent: {},
|
||||
});
|
||||
|
||||
describe('vim-buffer-actions', () => {
|
||||
@@ -904,7 +905,9 @@ describe('vim-buffer-actions', () => {
|
||||
|
||||
it('should preserve undo stack in operations', () => {
|
||||
const state = createTestState(['hello'], 0, 0);
|
||||
state.undoStack = [{ lines: ['previous'], cursorRow: 0, cursorCol: 0 }];
|
||||
state.undoStack = [
|
||||
{ lines: ['previous'], cursorRow: 0, cursorCol: 0, pastedContent: {} },
|
||||
];
|
||||
|
||||
const action = {
|
||||
type: 'vim_delete_char' as const,
|
||||
|
||||
Reference in New Issue
Block a user