Call wclear on resize

Otherwise artefects can appear when resizing to smaller width with wide
characters at the right edge of the window.
weechat-hashes
C. McEnroe 2020-09-02 02:18:04 -04:00
parent a84c9cdda7
commit 17898622e3
1 changed files with 1 additions and 0 deletions

1
ui.c
View File

@ -556,6 +556,7 @@ void uiFormat(
static void resize(void) { static void resize(void) {
statusUpdate(); statusUpdate();
wclear(main);
wresize(main, MAIN_LINES, COLS); wresize(main, MAIN_LINES, COLS);
for (uint num = 0; num < windows.len; ++num) { for (uint num = 0; num < windows.len; ++num) {
bufferReflow(windows.ptrs[num]->buffer, COLS); bufferReflow(windows.ptrs[num]->buffer, COLS);