'inccommand': Fix matches for zero-width (#7487)

closes #7485
This commit is contained in:
KillTheMule
2017-11-05 17:11:44 +01:00
committed by Justin M. Keyes
parent 739bc5124a
commit 04b3c32772
2 changed files with 40 additions and 0 deletions

View File

@@ -3478,6 +3478,10 @@ static buf_T *do_sub(exarg_T *eap, proftime_T timeout)
else
++matchcol;
}
// match will be pushed to preview_lines, bring it into a proper state
current_match.start.col = matchcol;
current_match.end.lnum = sub_firstlnum;
current_match.end.col = matchcol;
goto skip;
}