mirror of
https://github.com/profanity-im/profanity.git
synced 2024-09-29 19:56:07 -04:00
Merge pull request #1324 from profanity-im/ui-fix
Fix condition in wins_show_subwin()
This commit is contained in:
commit
d572ffa061
@ -748,6 +748,9 @@ win_refresh_with_subwin(ProfWin *window)
|
|||||||
subwin_cols = win_occpuants_cols();
|
subwin_cols = win_occpuants_cols();
|
||||||
} else if (window->type == WIN_CONSOLE) {
|
} else if (window->type == WIN_CONSOLE) {
|
||||||
subwin_cols = win_roster_cols();
|
subwin_cols = win_roster_cols();
|
||||||
|
} else {
|
||||||
|
// Other window types don't support subwindows, we shouldn't be here
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
pnoutrefresh(layout->base.win, layout->base.y_pos, 0, row_start, 0, row_end, (cols-subwin_cols)-1);
|
pnoutrefresh(layout->base.win, layout->base.y_pos, 0, row_start, 0, row_end, (cols-subwin_cols)-1);
|
||||||
|
@ -743,8 +743,7 @@ wins_show_subwin(ProfWin *window)
|
|||||||
win_show_subwin(window);
|
win_show_subwin(window);
|
||||||
|
|
||||||
// only mucwin and console have occupants/roster subwin
|
// only mucwin and console have occupants/roster subwin
|
||||||
if (window->type != WIN_MUC ||
|
if (window->type != WIN_MUC && window->type != WIN_CONSOLE) {
|
||||||
window->type != WIN_CONSOLE) {
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user