vim-patch:8.2.0295: highlighting for :s wrong when using different separator (#14286)

Problem:    Highlighting for :s wrong when using different separator.
Solution:   Use separat argument for search direction and separator. (Rob
            Pilling, closes vim/vim#5665)
c036e87bd7
This commit is contained in:
Ghjuvan Lacambre
2021-04-04 20:43:22 +02:00
committed by GitHub
parent 76f5c72860
commit 0f187700ab
9 changed files with 75 additions and 26 deletions

View File

@@ -5459,7 +5459,7 @@ static int normal_search(
curwin->w_set_curswant = true;
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;