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

@@ -3928,7 +3928,7 @@ static linenr_T get_address(exarg_T *eap,
}
searchcmdlen = 0;
flags = silent ? 0 : SEARCH_HIS | SEARCH_MSG;
if (!do_search(NULL, c, cmd, 1L, flags, NULL)) {
if (!do_search(NULL, c, c, cmd, 1L, flags, NULL)) {
curwin->w_cursor = pos;
cmd = NULL;
goto error;