diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/search.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/search.c b/src/nvim/search.c index dac88941dd..b58707a3c1 100644 --- a/src/nvim/search.c +++ b/src/nvim/search.c @@ -3957,9 +3957,9 @@ current_search( if (VIsual_active && *p_sel == 'e' && lt(VIsual, curwin->w_cursor)) dec_cursor(); - pos_T orig_pos; /* position of the cursor at beginning */ + pos_T orig_pos; // position of the cursor at beginning pos_T first_match; // position of first match - pos_T pos; /* position after the pattern */ + pos_T pos; // position after the pattern int result; // result of various function calls if (VIsual_active) { @@ -3996,8 +3996,8 @@ current_search( flags = SEARCH_END; result = searchit(curwin, curbuf, &pos, (dir ? FORWARD : BACKWARD), - spats[last_idx].pat, i ? count : 1, - SEARCH_KEEP | flags, RE_SEARCH, 0, NULL); + spats[last_idx].pat, i ? count : 1, + SEARCH_KEEP | flags, RE_SEARCH, 0, NULL); /* First search may fail, but then start searching from the * beginning of the file (cursor might be on the search match) |