comparison src/normal.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 e21c22c58e2b
comparison
equal deleted inserted replaced
19474:3e0b71dd3dc5 19475:5512aa74cb62
4302 cap->oap->inclusive = FALSE; 4302 cap->oap->inclusive = FALSE;
4303 cap->oap->use_reg_one = TRUE; 4303 cap->oap->use_reg_one = TRUE;
4304 curwin->w_set_curswant = TRUE; 4304 curwin->w_set_curswant = TRUE;
4305 4305
4306 vim_memset(&sia, 0, sizeof(sia)); 4306 vim_memset(&sia, 0, sizeof(sia));
4307 i = do_search(cap->oap, dir, pat, cap->count1, 4307 i = do_search(cap->oap, dir, dir, pat, cap->count1,
4308 opt | SEARCH_OPT | SEARCH_ECHO | SEARCH_MSG, &sia); 4308 opt | SEARCH_OPT | SEARCH_ECHO | SEARCH_MSG, &sia);
4309 if (wrapped != NULL) 4309 if (wrapped != NULL)
4310 *wrapped = sia.sa_wrapped; 4310 *wrapped = sia.sa_wrapped;
4311 if (i == 0) 4311 if (i == 0)
4312 clearop(cap->oap); 4312 clearop(cap->oap);