From 8942f83d2978c35195911d0a499d746f923b5da4 Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Tue, 18 Dec 2007 01:28:53 +0000 Subject: [PATCH] in execute_command(), call terminal_init() instead of just disable_signals() after executing the command, as the command may have changed the terminal settings git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4201 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 5 +++++ src/text.c | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3417c192..dac981b8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -100,6 +100,11 @@ CVS code - - Fix problem where replacing e.g. single-byte characters with multibyte ones could result in openfile->totsize's being miscalculated. (DLR) +- text.c: + execute_command() + - Call terminal_init() instead of just disable_signals() after + executing the command, as the command may have changed the + terminal settings. (DLR) - utils.c: ngetline(), ngetdelim() - Update copyright notice to account for modifications. (DLR) diff --git a/src/text.c b/src/text.c index 0ec884d0..166c182e 100644 --- a/src/text.c +++ b/src/text.c @@ -503,9 +503,10 @@ bool execute_command(const char *command) if (!sig_failed && sigaction(SIGINT, &oldaction, NULL) == -1) nperror("sigaction"); - /* Disable interpretation of the special control keys so that we can + /* Restore the terminal to its previous state. In the process, + * disable interpretation of the special control keys so that we can * use Ctrl-C for other things. */ - disable_signals(); + terminal_init(); return TRUE; } -- 2.39.5