0
0
mirror of https://github.com/vim/vim.git synced 2025-09-29 04:34:16 -04:00

updated for version 7.3.1185

Problem:    New regexp engine: no match with ^ after \n. (SungHyun Nam)
Solution:   Fix it, add a test.
This commit is contained in:
Bram Moolenaar
2013-06-13 20:19:40 +02:00
parent 484d241a4a
commit b62bcd1e05
4 changed files with 18 additions and 2 deletions

View File

@@ -3936,9 +3936,10 @@ addstate(l, state, subs, pim, off)
case NFA_BOL:
case NFA_BOF:
/* "^" won't match past end-of-line, don't bother trying.
* Except when we are going to the next line for a look-behind
* match. */
* Except when at the end of the line, or when we are going to the
* next line for a look-behind match. */
if (reginput > regline
&& *reginput != NUL
&& (nfa_endp == NULL
|| !REG_MULTI
|| reglnum == nfa_endp->se_u.pos.lnum))