commit b7e2da7434bdc3c6b6e3b970e4e37b309e6b4f80
parent 8e2d03b92ccf6e43df127067a5ee1b9ddc2b4378
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 26 May 2019 19:05:30 +0200
files: don't save the state of the terminal a second time
The user will understand that changing the state of the terminal
while inputting data into nano is not the same as changing this
state before nano has started or after nano has exited.
This fixes https://savannah.gnu.org/bugs/?56394.
Bug existed since version 2.4.2.
Diffstat:
1 file changed, 0 insertions(+), 4 deletions(-)
diff --git a/src/nano.c b/src/nano.c
@@ -1113,10 +1113,6 @@ bool scoop_stdin(void)
dup2(thetty, 0);
close(thetty);
- /* If things went well, store the current state of the terminal. */
- if (!control_C_was_pressed)
- tcgetattr(0, &oldterm);
-
/* Restore the original ^C handler, the terminal setup, and curses mode. */
restore_handler_for_Ctrl_C();
terminal_init();