mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-21 18:44:30 -07:00
Don't clear buffers on cleanup. (#12979)
This commit is contained in:
committed by
GitHub
parent
5d27a62bec
commit
43916b98aa
@@ -593,16 +593,8 @@ export function KeypressProvider({
|
||||
}
|
||||
|
||||
stdin.on('data', dataListener);
|
||||
|
||||
return () => {
|
||||
// flush buffers by sending null key
|
||||
backslashBufferer(null);
|
||||
pasteBufferer(null);
|
||||
// flush by sending empty string to the data listener
|
||||
dataListener('');
|
||||
stdin.removeListener('data', dataListener);
|
||||
|
||||
// Restore the terminal to its original state.
|
||||
if (wasRaw === false) {
|
||||
setRawMode(false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user