mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-07 20:00:37 -07:00
Restore keyboard mode when exiting the editor (#13350)
This commit is contained in:
committed by
GitHub
parent
3f8d636501
commit
84573992b4
@@ -20,6 +20,7 @@ import {
|
||||
import type { Key } from '../../contexts/KeypressContext.js';
|
||||
import type { VimAction } from './vim-buffer-actions.js';
|
||||
import { handleVimAction } from './vim-buffer-actions.js';
|
||||
import { enableSupportedProtocol } from '../../utils/kittyProtocolDetector.js';
|
||||
|
||||
export type Direction =
|
||||
| 'left'
|
||||
@@ -1891,6 +1892,7 @@ export function useTextBuffer({
|
||||
} catch (err) {
|
||||
console.error('[useTextBuffer] external editor error', err);
|
||||
} finally {
|
||||
enableSupportedProtocol();
|
||||
if (wasRaw) setRawMode?.(true);
|
||||
try {
|
||||
fs.unlinkSync(filePath);
|
||||
|
||||
Reference in New Issue
Block a user