Problem: New regexp engine: no match with ^ after \n. (SungHyun Nam)
Solution: Fix it, add a test.
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))
:.yank
y$Go\ep:"
:"
+:" Check a pattern with a line break and ^ and $
+/^Abc:
+/a\n^b$\n^c/e
+:.yank
+Go\ep:"
+:"
:" Check a pattern with a look beind crossing a line boundary
/^Behind:
/\(<\_[xy]\+\)\@3<=start
xjk
lmn
+Abc:
+a
+b
+c
+
Behind:
asdfasd<yyy
xxstart1
<T="7">Ac 7</Title>
ghi
+c
+
xxstart3
thexE thE thExethe
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 1185,
/**/
1184,
/**/