Merge pull request #12721 from aufarg/vim-8.1.0265

[RDY] vim-patch:8.1.{265,271,273,274,275,277,278,279,280,281,282,284,286,291,295,296,320,321,339,351,392,399,552}
This commit is contained in:
Jan Edmund Lazo
2020-09-12 10:51:59 -04:00
committed by GitHub
9 changed files with 1259 additions and 568 deletions

View File

@@ -5918,6 +5918,12 @@ next_search_hl (
long nmatched = 0;
int save_called_emsg = called_emsg;
// for :{range}s/pat only highlight inside the range
if (lnum < search_first_line || lnum > search_last_line) {
shl->lnum = 0;
return;
}
if (shl->lnum != 0) {
// Check for three situations:
// 1. If the "lnum" is below a previous match, start a new search.