diff options
author | ZyX <kp-pav@yandex.ru> | 2018-04-22 20:34:32 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2018-04-22 20:34:32 +0300 |
commit | 953d167015c3346e36d8be0b181a07123af883ce (patch) | |
tree | c4bb319a5dd7d058286e65a15996a34e79e2fc45 /src | |
parent | 76c2a60ff3c4befd71fa5ec0f20bed7049ff3bd9 (diff) | |
download | rneovim-953d167015c3346e36d8be0b181a07123af883ce.tar.gz rneovim-953d167015c3346e36d8be0b181a07123af883ce.tar.bz2 rneovim-953d167015c3346e36d8be0b181a07123af883ce.zip |
syntax: Fix PVS/V560: condition was already checked
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/syntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index 55992f8785..26de519f3c 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -5732,7 +5732,7 @@ int syn_get_id( // line of the same buffer, need to restart parsing. if (wp->w_buffer != syn_buf || lnum != current_lnum || col < current_col) { 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 // "skip" expression in searchpair() next_match_idx = -1; |