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
.
master
parent
48ac0a64c6
commit
462e9d4822
12
src/nano.c
12
src/nano.c
|
@ -1194,19 +1194,19 @@ 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
|
||||
tcsetattr(0, TCSANOW, &desired_state);
|
||||
|
||||
SLang_init_tty(-1, 0, 0);
|
||||
#endif
|
||||
if (ISSET(PRESERVE))
|
||||
enable_flow_control();
|
||||
#ifdef USE_SLANG
|
||||
else
|
||||
disable_flow_control();
|
||||
#endif
|
||||
disable_kb_interrupt();
|
||||
|
||||
|
|
Loading…
Reference in New Issue