comparison src/gui.c @ 19475:5512aa74cb62 v8.2.0295

patch 8.2.0295: highlighting for :s wrong when using different separator Commit: https://github.com/vim/vim/commit/c036e87bd7001238ab7cc5d9e30e59bbf989a5fd Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 21 21:30:52 2020 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Fri, 21 Feb 2020 21:45:04 +0100
parents 2ef19eed524a
children 22f0dda71638
comparison
equal deleted inserted replaced
19474:3e0b71dd3dc5 19475:5512aa74cb62
5372 if (type == FRD_REPLACE) 5372 if (type == FRD_REPLACE)
5373 searchflags += SEARCH_START; 5373 searchflags += SEARCH_START;
5374 i = msg_scroll; 5374 i = msg_scroll;
5375 if (down) 5375 if (down)
5376 { 5376 {
5377 (void)do_search(NULL, '/', ga.ga_data, 1L, searchflags, NULL); 5377 (void)do_search(NULL, '/', '/', ga.ga_data, 1L, searchflags, NULL);
5378 } 5378 }
5379 else 5379 else
5380 { 5380 {
5381 // We need to escape '?' if and only if we are searching in the up 5381 // We need to escape '?' if and only if we are searching in the up
5382 // direction 5382 // direction
5383 p = vim_strsave_escaped(ga.ga_data, (char_u *)"?"); 5383 p = vim_strsave_escaped(ga.ga_data, (char_u *)"?");
5384 if (p != NULL) 5384 if (p != NULL)
5385 (void)do_search(NULL, '?', p, 1L, searchflags, NULL); 5385 (void)do_search(NULL, '?', '?', p, 1L, searchflags, NULL);
5386 vim_free(p); 5386 vim_free(p);
5387 } 5387 }
5388 5388
5389 msg_scroll = i; // don't let an error message set msg_scroll 5389 msg_scroll = i; // don't let an error message set msg_scroll
5390 } 5390 }