Fix handling terminal resizes while the terminal is suspended

GNU Readline has a misfeature.
This commit is contained in:
Přemysl Eric Janouch 2020-03-21 22:02:02 +01:00
parent 64d4009427
commit 2909b017fb
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 2 additions and 0 deletions

View File

@ -454,6 +454,7 @@ input_rl_start (void *input, const char *program_name)
rl_readline_name = slash ? ++slash : program_name;
rl_startup_hook = app_readline_init;
rl_catch_sigwinch = false;
rl_change_environment = false;
rl_basic_word_break_characters = WORD_BREAKING_CHARS;
rl_completer_word_break_characters = NULL;
@ -12459,6 +12460,7 @@ resume_terminal (struct app_context *ctx)
update_screen_size ();
CALL_ (ctx->input, prepare, true);
CALL (ctx->input, on_tty_resized);
toggle_bracketed_paste (true);
// In theory we could just print all unseen messages but this is safer