aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIhor Antonov <ngortheone@gmail.com>2019-07-19 11:06:40 -0400
committerIhor Antonov <ngortheone@gmail.com>2019-07-19 11:06:40 -0400
commitf1127a33f103524d5f8859026cb56e59872fceb1 (patch)
tree60af69d3b87e3e6fc97e99aaec3ede1ee744e828 /src
parent91bbd07417f18e3cce179953d8252cefb43e7e80 (diff)
downloadrneovim-f1127a33f103524d5f8859026cb56e59872fceb1.tar.gz
rneovim-f1127a33f103524d5f8859026cb56e59872fceb1.tar.bz2
rneovim-f1127a33f103524d5f8859026cb56e59872fceb1.zip
pvs/V560: A part of conditional expression is always true
wp->w_p_list is checked earlier in the same composite if condition
Diffstat (limited to 'src')
-rw-r--r--src/nvim/screen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/screen.c b/src/nvim/screen.c
index ec73c670e6..401e56c137 100644
--- a/src/nvim/screen.c
+++ b/src/nvim/screen.c
@@ -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);