1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-11-03 19:37:16 -05:00

win_refresh_with_subwin() fixup

Fixup for 86af6925d9
This commit is contained in:
Michael Vetter 2020-04-20 16:35:13 +02:00
parent b9c384d6ca
commit b1d71236fe

View File

@ -742,12 +742,11 @@ win_refresh_with_subwin(ProfWin *window)
int cols = getmaxx(stdscr); int cols = getmaxx(stdscr);
int row_start = screen_mainwin_row_start(); int row_start = screen_mainwin_row_start();
int row_end = screen_mainwin_row_end(); int row_end = screen_mainwin_row_end();
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
if (window->type == WIN_MUC) { if (window->type == WIN_MUC) {
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
subwin_cols = win_occpuants_cols(); subwin_cols = win_occpuants_cols();
} else if (window->type == WIN_CONSOLE) { } else if (window->type == WIN_CONSOLE) {
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
subwin_cols = win_roster_cols(); subwin_cols = win_roster_cols();
} }