Hi, It has been two months since I submitted an upstream-provided patch. This bug forces me to manually redraw my screen several times per hour.
I intend to NMU neomutt in fourteen days, and I will upload a package generated from attached patch sequence to DELAYED/10. Please let me know by then if you prefer that I not do so. Thanks, Ryan -- |)|/ Ryan Kavanagh | GPG: 4E46 9519 ED67 7734 268F |\|\ https://rak.ac | BD95 8F7B F8FC 4A11 C97A
From c87066355cc6aa5cb494eb066ffa0823d0e4267c Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh <r...@debian.org> Date: Tue, 16 Mar 2021 15:37:10 -0400 Subject: [PATCH 1/2] 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 0000000..a09031b --- /dev/null +++ b/debian/patches/misc/redraw-on-sigwinch.patch @@ -0,0 +1,43 @@ +From: Richard Russon <r...@flatcap.org> +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 4bbbda3..49e6f2a 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -3,3 +3,4 @@ debian-specific/use_usr_bin_editor.patch debian-specific/document_debian_defaults.patch misc/smime.rc.patch upstream/981306-mime-forwarding.patch +misc/redraw-on-sigwinch.patch -- 2.30.2
From 8f165cec619b20d895aa5700d4c4cf9337f9a30b Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh <r...@debian.org> Date: Tue, 16 Mar 2021 15:38:22 -0400 Subject: [PATCH 2/2] Changelog for 20201127+dfsg.1-1.1 --- debian/changelog | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/changelog b/debian/changelog index c9a8bd3..213c8a4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +neomutt (20201127+dfsg.1-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Clear the message window on SIGWINCH, redraw-on-sigwinch.patch + (Closes: #980427) + + -- Ryan Kavanagh <r...@debian.org> Tue, 16 Mar 2021 15:37:31 -0400 + neomutt (20201127+dfsg.1-1) unstable; urgency=medium * New upstream release. -- 2.30.2
signature.asc
Description: PGP signature