From b1d71236fe2734e1337e8e6102aa97734137e1f9 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Mon, 20 Apr 2020 16:35:13 +0200 Subject: [PATCH] win_refresh_with_subwin() fixup Fixup for 86af6925d9fc0b2656eac15b0c8c7aba60589ce5 --- src/ui/window.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ui/window.c b/src/ui/window.c index a121769a..fdbe8208 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -742,12 +742,11 @@ win_refresh_with_subwin(ProfWin *window) int cols = getmaxx(stdscr); int row_start = screen_mainwin_row_start(); int row_end = screen_mainwin_row_end(); + ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout; if (window->type == WIN_MUC) { - ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout; subwin_cols = win_occpuants_cols(); } else if (window->type == WIN_CONSOLE) { - ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout; subwin_cols = win_roster_cols(); }