mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
patch 8.2.0295: highlighting for :s wrong when using different separator
Problem: Highlighting for :s wrong when using different separator. Solution: Use separat argument for search direction and separator. (Rob Pilling, closes #5665)
This commit is contained in:
@@ -5374,7 +5374,7 @@ gui_do_findrepl(
|
||||
i = msg_scroll;
|
||||
if (down)
|
||||
{
|
||||
(void)do_search(NULL, '/', ga.ga_data, 1L, searchflags, NULL);
|
||||
(void)do_search(NULL, '/', '/', ga.ga_data, 1L, searchflags, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -5382,7 +5382,7 @@ gui_do_findrepl(
|
||||
// direction
|
||||
p = vim_strsave_escaped(ga.ga_data, (char_u *)"?");
|
||||
if (p != NULL)
|
||||
(void)do_search(NULL, '?', p, 1L, searchflags, NULL);
|
||||
(void)do_search(NULL, '?', '?', p, 1L, searchflags, NULL);
|
||||
vim_free(p);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user