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/trunk/nano@4201 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
75500fd801
commit
8b9c91b80d
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
* ChangeLog.pre-2.1: Add missing attribution.
|
* ChangeLog.pre-2.1: Add missing attribution.
|
||||||
* NEWS: Resync with NEWS from the 2.0 branch.
|
* NEWS: Resync with NEWS from the 2.0 branch.
|
||||||
|
* 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.
|
||||||
|
|
||||||
2007-12-10 David Lawrence Ramsey <pooka109@gmail.com>
|
2007-12-10 David Lawrence Ramsey <pooka109@gmail.com>
|
||||||
|
|
||||||
|
|
|
@ -503,9 +503,10 @@ bool execute_command(const char *command)
|
||||||
if (!sig_failed && sigaction(SIGINT, &oldaction, NULL) == -1)
|
if (!sig_failed && sigaction(SIGINT, &oldaction, NULL) == -1)
|
||||||
nperror("sigaction");
|
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. */
|
* use Ctrl-C for other things. */
|
||||||
disable_signals();
|
terminal_init();
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue