nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 462e9d4822a36a30d824efad99a3226c4dbc45d4
parent 48ac0a64c65b36f90fa295bfa4187390ee8b37ae
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue,  8 Sep 2020 09:15:12 +0200

suspension: switch off flow control at the right moment (for Slang)

This fixes https://savannah.gnu.org/bugs/?59078.

Bug existed since version 4.8, commit c09e96f2.

Diffstat:
Msrc/nano.c | 12++++++------
1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1194,13 +1194,7 @@ void terminal_init(void) nonl(); noecho(); disable_extended_io(); - - if (ISSET(PRESERVE)) - enable_flow_control(); #ifdef USE_SLANG - else - disable_flow_control(); - tcgetattr(0, &desired_state); have_new_state = TRUE; } else @@ -1208,6 +1202,12 @@ void terminal_init(void) SLang_init_tty(-1, 0, 0); #endif + if (ISSET(PRESERVE)) + enable_flow_control(); +#ifdef USE_SLANG + else + disable_flow_control(); +#endif disable_kb_interrupt(); #ifndef NANO_TINY