From 92759ef34fabe8ffb81f32bdda17f999f868082d Mon Sep 17 00:00:00 2001 From: ZyX Date: Mon, 9 Apr 2018 10:02:54 +0300 Subject: buffer: Fix PVS/V560: condition was checked three lines above --- src/nvim/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/buffer.c') diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 1a5b7ec612..a4ba30337d 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -5362,7 +5362,7 @@ void bufhl_clear_line_range(buf_T *buf, if (line > line_end) { break; } - if (line_start <= line && line <= line_end) { + if (line_start <= line) { BufhlLineStatus status = bufhl_clear_line(l, src_id, line); if (status != kBLSUnchanged) { if (line > last_changed) { -- cgit