1
0
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:
Bram Moolenaar
2013-06-06 18:04:51 +02:00
parent 188c57bcd1
commit 6d3a5d755a
3 changed files with 11 additions and 2 deletions

View File

@@ -6548,6 +6548,12 @@ regdump(pattern, r)
fprintf(f, " count %ld", OPERAND_MIN(s));
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;
if (op == ANYOF || op == ANYOF + ADD_NL
|| op == ANYBUT || op == ANYBUT + ADD_NL