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
- 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)
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;
}