From 7d46eff738c085a35a4a23d0e1c195088062023c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg <bensberg@telfort.nl> Date: Sun, 2 Jul 2017 13:36:19 +0200 Subject: [PATCH] display: when back in the main loop, always redraw the help lines (Well, redraw them when they're switched on, of course.) Redraw them so that they are shown correctly if their content changed. This fixes https://savannah.gnu.org/bugs/?51356. and fixes https://savannah.gnu.org/bugs/?51357. --- src/nano.c | 3 +-- src/text.c | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/nano.c b/src/nano.c index 49a1767f..9b08c8f1 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2605,8 +2605,7 @@ int main(int argc, char **argv) } #endif - if (currmenu != MMAIN) - display_main_list(); + display_main_list(); lastmessage = HUSH; as_an_at = TRUE; diff --git a/src/text.c b/src/text.c index c745e6ca..01eae1e0 100644 --- a/src/text.c +++ b/src/text.c @@ -2438,7 +2438,7 @@ void do_justify(bool full_justify) edit_refresh(); - /* Display the shortcut list with UnJustify. */ + /* Show "Unjustify" in the help lines. */ uncutfunc->desc = unjust_tag; display_main_list(); @@ -2515,9 +2515,8 @@ void do_justify(bool full_justify) blank_statusbar(); - /* Display the shortcut list with UnCut. */ + /* Show "Uncut" again in the help lines. */ uncutfunc->desc = uncut_tag; - display_main_list(); } /* Justify the current paragraph. */ -- GitLab