mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
search: Fix PVS/V560: condition checked in previous if with goto
This commit is contained in:
@@ -3396,11 +3396,13 @@ again:
|
||||
goto again;
|
||||
}
|
||||
|
||||
if (do_include || r < 1) {
|
||||
/* Include up to the '>'. */
|
||||
while (*get_cursor_pos_ptr() != '>')
|
||||
if (inc_cursor() < 0)
|
||||
if (do_include) {
|
||||
// Include up to the '>'.
|
||||
while (*get_cursor_pos_ptr() != '>') {
|
||||
if (inc_cursor() < 0) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
char_u *c = get_cursor_pos_ptr();
|
||||
// Exclude the '<' of the end tag.
|
||||
|
Reference in New Issue
Block a user