From 9c981f5a1986542dba2bdb200894baaa7780ec4a Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 22 Apr 2018 19:39:39 +0300 Subject: [PATCH] screen: Fix PVS/V560: condition was checked in surrounding if --- src/nvim/screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/nvim/screen.c b/src/nvim/screen.c index 0672187975..9c3ac29250 100644 --- a/src/nvim/screen.c +++ b/src/nvim/screen.c @@ -3542,8 +3542,7 @@ win_line ( tab_len += vcol_off; } // boguscols before FIX_FOR_BOGUSCOLS macro from above. - if (wp->w_p_list && lcs_tab1 && old_boguscols > 0 - && n_extra > tab_len) { + if (lcs_tab1 && old_boguscols > 0 && n_extra > tab_len) { tab_len += n_extra - tab_len; }