aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p@janouch.name>2020-03-21 22:02:02 +0100
committerPřemysl Janouch <p@janouch.name>2020-03-21 22:02:02 +0100
commit2909b017fb144ca1d31a5a7f740853d5befda5ed (patch)
tree273a88ee7b096a3034676c27f2c7ecc859086abc
parent64d4009427d5a008673ba57c46d99573ad5f4286 (diff)
downloadxK-2909b017fb144ca1d31a5a7f740853d5befda5ed.tar.gz
xK-2909b017fb144ca1d31a5a7f740853d5befda5ed.tar.xz
xK-2909b017fb144ca1d31a5a7f740853d5befda5ed.zip
Fix handling terminal resizes while the terminal is suspended
GNU Readline has a misfeature.
-rw-r--r--degesch.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index 3f44217..66a626a 100644
--- a/degesch.c
+++ b/degesch.c
@@ -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