Control: tags -1 + patch The attached patch fixes this bug. You can apply it with
git am 0001-Clear-the-message-window-on-SIGWINCH-redraw-on-sigwi.patch -- |)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F |\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A
From 659998e565c12effa5c647a2578f6b8f72607f27 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh <[email protected]> Date: Mon, 18 Jan 2021 18:01:34 -0500 Subject: [PATCH] Clear the message window on SIGWINCH, redraw-on-sigwinch.patch (Closes: #980427) --- debian/patches/misc/redraw-on-sigwinch.patch | 43 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 44 insertions(+) create mode 100644 debian/patches/misc/redraw-on-sigwinch.patch diff --git a/debian/patches/misc/redraw-on-sigwinch.patch b/debian/patches/misc/redraw-on-sigwinch.patch new file mode 100644 index 000000000..a09031b97 --- /dev/null +++ b/debian/patches/misc/redraw-on-sigwinch.patch @@ -0,0 +1,43 @@ +From: Richard Russon <[email protected]> +Date: Mon, 7 Dec 2020 14:21:45 +0000 +Subject: clear the message window on SIGWINCH (#2756) + +When the terminal is resized (or the font-size is changed), +the screen must be redrawn. This *used* to involve clearing the entire +screen. Soon, it will be delegated to individual windows to refresh +themselves. + +In the mean time, forcibly clear the MessageWindow. + +Fixes: #2749 + +Origin: https://github.com/neomutt/neomutt/commit/88f0b0572da9414550608054e960fd00b8d6b939 +--- + index.c | 1 + + pager.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/index.c b/index.c +index c29ba8b..af3a18f 100644 +--- a/index.c ++++ b/index.c +@@ -1368,6 +1368,7 @@ int mutt_index_menu(struct MuttWindow *dlg) + /* force a real complete redraw. clrtobot() doesn't seem to be able + * to handle every case without this. */ + clearok(stdscr, true); ++ mutt_window_clearline(MessageWindow, 0); + continue; + } + +diff --git a/pager.c b/pager.c +index b08dda2..0e333c0 100644 +--- a/pager.c ++++ b/pager.c +@@ -2473,6 +2473,7 @@ int mutt_pager(const char *banner, const char *fname, PagerFlags flags, struct P + SigWinch = 0; + mutt_resize_screen(); + clearok(stdscr, true); /* force complete redraw */ ++ mutt_window_clearline(MessageWindow, 0); + + if (flags & MUTT_PAGER_RETWINCH) + { diff --git a/debian/patches/series b/debian/patches/series index 06cb026ad..9b54666f6 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -2,3 +2,4 @@ debian-specific/neomuttrc.patch debian-specific/use_usr_bin_editor.patch debian-specific/document_debian_defaults.patch misc/smime.rc.patch +misc/redraw-on-sigwinch.patch -- 2.30.0
signature.asc
Description: PGP signature

