refactor(PVS/V581): merge identical if statements (#22390)

This commit is contained in:
Mark Naughton 2023-02-24 11:05:39 +00:00 committed by GitHub
parent c57af5d41c
commit 04a6369da5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1045,9 +1045,6 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool nochange,
|| wp->w_p_lcs_chars.nbsp) { || wp->w_p_lcs_chars.nbsp) {
extra_check = true; extra_check = true;
} }
}
if (wp->w_p_list && !has_fold && !end_fill) {
trailcol = get_trailcol(wp, ptr, line); trailcol = get_trailcol(wp, ptr, line);
leadcol = get_leadcol(wp, ptr, line); leadcol = get_leadcol(wp, ptr, line);
} }