Reduce scope of variables in ui/core
Not as important as the other one (where there was a double declaration). But for the sake of consistency.
This commit is contained in:
@@ -471,12 +471,12 @@ win_clear(ProfWin *window)
|
||||
void
|
||||
win_resize(ProfWin *window)
|
||||
{
|
||||
int subwin_cols = 0;
|
||||
int cols = getmaxx(stdscr);
|
||||
|
||||
if (window->layout->type == LAYOUT_SPLIT) {
|
||||
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
|
||||
if (layout->subwin) {
|
||||
int subwin_cols = 0;
|
||||
if (window->type == WIN_CONSOLE) {
|
||||
subwin_cols = win_roster_cols();
|
||||
} else if (window->type == WIN_MUC) {
|
||||
@@ -506,11 +506,11 @@ win_update_virtual(ProfWin *window)
|
||||
{
|
||||
int rows, cols;
|
||||
getmaxyx(stdscr, rows, cols);
|
||||
int subwin_cols = 0;
|
||||
|
||||
if (window->layout->type == LAYOUT_SPLIT) {
|
||||
ProfLayoutSplit *layout = (ProfLayoutSplit*)window->layout;
|
||||
if (layout->subwin) {
|
||||
int subwin_cols = 0;
|
||||
if (window->type == WIN_MUC) {
|
||||
subwin_cols = win_occpuants_cols();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user