diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-21 21:30:52 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-21 21:30:52 +0100 |
commit | c036e87bd7001238ab7cc5d9e30e59bbf989a5fd (patch) | |
tree | 2ed9e85172f565706463cee71e7ad6a93637297a /src/normal.c | |
parent | 5b1c8fe3d588ab450d4646a0088db4efda88200a (diff) |
patch 8.2.0295: highlighting for :s wrong when using different separatorv8.2.0295
Problem: Highlighting for :s wrong when using different separator.
Solution: Use separat argument for search direction and separator. (Rob
Pilling, closes #5665)
Diffstat (limited to 'src/normal.c')
-rw-r--r-- | src/normal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/normal.c b/src/normal.c index 512b799a11..df2cf537e8 100644 --- a/src/normal.c +++ b/src/normal.c @@ -4304,7 +4304,7 @@ normal_search( curwin->w_set_curswant = TRUE; vim_memset(&sia, 0, sizeof(sia)); - i = do_search(cap->oap, dir, pat, cap->count1, + i = do_search(cap->oap, dir, dir, pat, cap->count1, opt | SEARCH_OPT | SEARCH_ECHO | SEARCH_MSG, &sia); if (wrapped != NULL) *wrapped = sia.sa_wrapped; |