Skip to content

Commit

Permalink
pvs/V560: A part of conditional expression is always true
Browse files Browse the repository at this point in the history
wp->w_p_list is checked earlier in the same composite if condition
  • Loading branch information
Ihor Antonov committed Jul 19, 2019
1 parent 91bbd07 commit f1127a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nvim/screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -4031,7 +4031,7 @@ win_line (
&& filler_todo <= 0
&& (wp->w_p_rl ? col == 0 : col == grid->Columns - 1)
&& (*ptr != NUL
|| (wp->w_p_list && lcs_eol_one > 0)
|| lcs_eol_one > 0
|| (n_extra && (c_extra != NUL || *p_extra != NUL)))) {
c = wp->w_p_lcs_chars.ext;
char_attr = win_hl_attr(wp, HLF_AT);
Expand Down

0 comments on commit f1127a3

Please sign in to comment.