syntax: Fix PVS/V560: condition was already checked

This commit is contained in:
ZyX
2018-04-22 20:34:32 +03:00
parent 76c2a60ff3
commit 953d167015

View File

@@ -5732,7 +5732,7 @@ int syn_get_id(
// line of the same buffer, need to restart parsing. // line of the same buffer, need to restart parsing.
if (wp->w_buffer != syn_buf || lnum != current_lnum || col < current_col) { if (wp->w_buffer != syn_buf || lnum != current_lnum || col < current_col) {
syntax_start(wp, lnum); syntax_start(wp, lnum);
} else if (lnum == current_lnum && col > current_col) { } else if (col > current_col) {
// next_match may not be correct when moving around, e.g. with the // next_match may not be correct when moving around, e.g. with the
// "skip" expression in searchpair() // "skip" expression in searchpair()
next_match_idx = -1; next_match_idx = -1;