mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 14:08:32 +00:00
search: Fix PVS/V547: condition already checked in surrounding if
This commit is contained in:
@@ -3944,15 +3944,15 @@ current_search (
|
||||
if (VIsual_active) {
|
||||
orig_pos = pos = curwin->w_cursor;
|
||||
|
||||
/* make sure, searching further will extend the match */
|
||||
if (VIsual_active) {
|
||||
if (forward)
|
||||
// Searching further will extend the match.
|
||||
if (forward) {
|
||||
incl(&pos);
|
||||
else
|
||||
} else {
|
||||
decl(&pos);
|
||||
}
|
||||
} else
|
||||
} else {
|
||||
orig_pos = pos = curwin->w_cursor;
|
||||
}
|
||||
|
||||
/* Is the pattern is zero-width? */
|
||||
int one_char = is_one_char(spats[last_idx].pat, true);
|
||||
|
Reference in New Issue
Block a user