Restore bracketed paste mode after external editor exit (#13606)

This commit is contained in:
Tommaso Sciortino
2025-11-21 13:20:37 -08:00
committed by GitHub
parent 9f9a2fa844
commit 1e715d1e5c
4 changed files with 30 additions and 6 deletions
+2
View File
@@ -116,6 +116,7 @@ import { isWorkspaceTrusted } from '../config/trustedFolders.js';
import { useAlternateBuffer } from './hooks/useAlternateBuffer.js';
import { useSettings } from './contexts/SettingsContext.js';
import { enableSupportedProtocol } from './utils/kittyProtocolDetector.js';
import { enableBracketedPaste } from './utils/bracketedPaste.js';
const WARNING_PROMPT_DURATION_MS = 1000;
const QUEUE_ERROR_DISPLAY_DURATION_MS = 3000;
@@ -387,6 +388,7 @@ export const AppContainer = (props: AppContainerProps) => {
disableLineWrapping();
app.rerender();
}
enableBracketedPaste();
enableSupportedProtocol();
refreshStatic();
}, [refreshStatic, isAlternateBuffer, app, config]);