forked from aniani/vim
updated for version 7.3.1132
Problem: Crash when debugging regexp. Solution: Do not try to dump subexpr that were not set. Skip over count of \% items.
This commit is contained in:
@@ -6548,6 +6548,12 @@ regdump(pattern, r)
|
|||||||
fprintf(f, " count %ld", OPERAND_MIN(s));
|
fprintf(f, " count %ld", OPERAND_MIN(s));
|
||||||
s += 4;
|
s += 4;
|
||||||
}
|
}
|
||||||
|
else if (op == RE_LNUM || op == RE_COL || op == RE_VCOL)
|
||||||
|
{
|
||||||
|
/* one int plus comperator */
|
||||||
|
fprintf(f, " count %ld", OPERAND_MIN(s));
|
||||||
|
s += 5;
|
||||||
|
}
|
||||||
s += 3;
|
s += 3;
|
||||||
if (op == ANYOF || op == ANYOF + ADD_NL
|
if (op == ANYOF || op == ANYOF + ADD_NL
|
||||||
|| op == ANYBUT || op == ANYBUT + ADD_NL
|
|| op == ANYBUT || op == ANYBUT + ADD_NL
|
||||||
|
@@ -2927,6 +2927,7 @@ log_subsexpr(subs)
|
|||||||
{
|
{
|
||||||
log_subexpr(&subs->norm);
|
log_subexpr(&subs->norm);
|
||||||
# ifdef FEAT_SYN_HL
|
# ifdef FEAT_SYN_HL
|
||||||
|
if (nfa_has_zsubexpr)
|
||||||
log_subexpr(&subs->synt);
|
log_subexpr(&subs->synt);
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
@@ -728,6 +728,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1132,
|
||||||
/**/
|
/**/
|
||||||
1131,
|
1131,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user