about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Kellermann <ckeen@pestilenz.org>2022-03-08 13:28:08 +0100
committerJune McEnroe <june@causal.agency>2022-03-09 21:18:05 -0500
commitee82e5d376dc2c329a1833a181f7353aa62dcb64 (patch)
tree05aa9546429690bd4f0cbef4dbda358e5baa3861
parentUpdate STANDARDS section authors, titles and URLs (diff)
downloadcatgirl-ee82e5d376dc2c329a1833a181f7353aa62dcb64.tar.gz
catgirl-ee82e5d376dc2c329a1833a181f7353aa62dcb64.zip
Always refresh the screen with ^L
This patch adds an explicit wrefresh call. Under some conditions
just flagging the window for redraw does not trigger a redraw and
the user has no other means to force redrawing of a window.

Without this patch resizing the window would sometimes result in
an empty chat window with no way to redraw it.

Tested under uxterm and st on OpenBSD.
Diffstat (limited to '')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index f3813c4..87a4eb9 100644
--- a/input.c
+++ b/input.c
@@ -467,7 +467,7 @@ static void keyCtrl(wchar_t ch) {
 		break; case L'I': error = tabComplete(edit, windowID());
 		break; case L'J': inputEnter();
 		break; case L'K': error = editFn(edit, EditDeleteTail);
-		break; case L'L': clearok(curscr, true);
+		break; case L'L': clearok(curscr, true); wrefresh(curscr);
 		break; case L'N': windowShow(windowNum() + 1);
 		break; case L'P': windowShow(windowNum() - 1);
 		break; case L'R': windowSearch(editString(edit, &buf, &cap, NULL), -1);