summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-09-02 02:18:04 -0400
committerJune McEnroe <june@causal.agency>2020-09-02 02:18:04 -0400
commit17898622e3e9a9cedd8cf78db3a9339ec4a4a659 (patch)
tree5bbfc166d2a5370a7d9742269170f286dfa5016e
parentFix line wrapping in various ways (diff)
downloadcatgirl-17898622e3e9a9cedd8cf78db3a9339ec4a4a659.tar.gz
catgirl-17898622e3e9a9cedd8cf78db3a9339ec4a4a659.zip
Call wclear on resize
Otherwise artefects can appear when resizing to smaller width with wide
characters at the right edge of the window.
-rw-r--r--ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.c b/ui.c
index 89dd4da..a898993 100644
--- a/ui.c
+++ b/ui.c
@@ -556,6 +556,7 @@ void uiFormat(
 
 static void resize(void) {
 	statusUpdate();
+	wclear(main);
 	wresize(main, MAIN_LINES, COLS);
 	for (uint num = 0; num < windows.len; ++num) {
 		bufferReflow(windows.ptrs[num]->buffer, COLS);