From 14bd52ced8445ef14e2f2a832c462f29e65570d1 Mon Sep 17 00:00:00 2001
From: Benno Schulenberg <bensberg@telfort.nl>
Date: Sun, 2 Jul 2017 17:01:24 +0200
Subject: [PATCH] display: wipe stale messages from the status bar straightaway

When blank_statusbar() has been called, make sure it is effective.

This fixes https://savannah.gnu.org/bugs/?51358.
---
 src/text.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/text.c b/src/text.c
index 01eae1e0..af629075 100644
--- a/src/text.c
+++ b/src/text.c
@@ -2514,6 +2514,7 @@ void do_justify(bool full_justify)
     jusbuffer = NULL;
 
     blank_statusbar();
+    wnoutrefresh(bottomwin);
 
     /* Show "Uncut" again in the help lines. */
     uncutfunc->desc = uncut_tag;
@@ -3349,6 +3350,7 @@ void do_linter(void)
     }
 
     blank_statusbar();
+    wnoutrefresh(bottomwin);
 
 #ifndef NANO_TINY
   free_lints_and_return:
-- 
GitLab