comparison src/screen.c @ 14515:3648e74dd523 v8.1.0271

patch 8.1.0271: 'incsearch' doesn't work for :s, :g or :v commit https://github.com/vim/vim/commit/b0acacd767a2b0618a7f3c08087708f4329580d0 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Aug 11 16:40:43 2018 +0200 patch 8.1.0271: 'incsearch' doesn't work for :s, :g or :v Problem: 'incsearch' doesn't work for :s, :g or :v. Solution: Also use 'incsearch' for other commands that use a pattern.
author Christian Brabandt <cb@256bit.org>
date Sat, 11 Aug 2018 16:45:05 +0200
parents aab5947be7c5
children 100a44722322
comparison
equal deleted inserted replaced
14514:7ac24a4dc6ea 14515:3648e74dd523
7890 linenr_T l; 7890 linenr_T l;
7891 colnr_T matchcol; 7891 colnr_T matchcol;
7892 long nmatched; 7892 long nmatched;
7893 int save_called_emsg = called_emsg; 7893 int save_called_emsg = called_emsg;
7894 7894
7895 // for :{range}s/pat only highlight inside the range
7896 if (lnum < search_first_line || lnum > search_last_line)
7897 {
7898 shl->lnum = 0;
7899 return;
7900 }
7901
7895 if (shl->lnum != 0) 7902 if (shl->lnum != 0)
7896 { 7903 {
7897 /* Check for three situations: 7904 /* Check for three situations:
7898 * 1. If the "lnum" is below a previous match, start a new search. 7905 * 1. If the "lnum" is below a previous match, start a new search.
7899 * 2. If the previous match includes "mincol", use it. 7906 * 2. If the previous match includes "mincol", use it.