mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-20 03:25:47 +00:00
ncdirect: call rl_deprep_terminal first
This commit is contained in:
parent
8283adc28f
commit
78a6ffdd22
@ -597,6 +597,9 @@ static int
|
||||
ncdirect_stop_minimal(void* vnc){
|
||||
ncdirect* nc = static_cast<ncdirect*>(vnc);
|
||||
int ret = drop_signals(nc);
|
||||
if(!(nc->flags & NCDIRECT_OPTION_NO_READLINE)){
|
||||
rl_deprep_terminal();
|
||||
}
|
||||
if(nc->tcache.op && term_emit("op", nc->tcache.op, nc->ttyfp, true)){
|
||||
ret = -1;
|
||||
}
|
||||
@ -615,9 +618,6 @@ ncdirect_stop_minimal(void* vnc){
|
||||
}
|
||||
ret |= close(nc->ctermfd);
|
||||
}
|
||||
if(!(nc->flags & NCDIRECT_OPTION_NO_READLINE)){
|
||||
rl_deprep_terminal();
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user