screen: Fix PVS/V560: condition was checked in surrounding if

This commit is contained in:
ZyX
2018-04-22 19:39:39 +03:00
parent e3bffa47a6
commit 9c981f5a19

View File

@@ -3542,8 +3542,7 @@ win_line (
tab_len += vcol_off; tab_len += vcol_off;
} }
// boguscols before FIX_FOR_BOGUSCOLS macro from above. // boguscols before FIX_FOR_BOGUSCOLS macro from above.
if (wp->w_p_list && lcs_tab1 && old_boguscols > 0 if (lcs_tab1 && old_boguscols > 0 && n_extra > tab_len) {
&& n_extra > tab_len) {
tab_len += n_extra - tab_len; tab_len += n_extra - tab_len;
} }