move assignment outside inner loop
This commit is contained in:
+6
-3
@@ -4357,13 +4357,16 @@ render_status(VOID_ARGS)
|
|||||||
tty_status[NOW][idx].last_on_row = FALSE;
|
tty_status[NOW][idx].last_on_row = FALSE;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* For comparison of current and previous,
|
* For comparison of current and previous:
|
||||||
* - Copy the entire tty_status struct.
|
* - Copy the entire tty_status struct.
|
||||||
* - Copy the last written column number on the line.
|
|
||||||
*/
|
*/
|
||||||
tty_status[BEFORE][idx] = tty_status[NOW][idx];
|
tty_status[BEFORE][idx] = tty_status[NOW][idx];
|
||||||
finalx[row][BEFORE] = finalx[row][NOW];
|
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* For comparison of current and previous:
|
||||||
|
* - Copy the last written column number on the row.
|
||||||
|
*/
|
||||||
|
finalx[row][BEFORE] = finalx[row][NOW];
|
||||||
}
|
}
|
||||||
if (cond_disp_width[NOW] < cond_width_at_shrink) {
|
if (cond_disp_width[NOW] < cond_width_at_shrink) {
|
||||||
cond_shrinklvl = 0; /* reset */
|
cond_shrinklvl = 0; /* reset */
|
||||||
|
|||||||
Reference in New Issue
Block a user