summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/fileio.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 17b73bf65..b1bcfb536 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -8514,7 +8514,7 @@ do_autocmd_event(event, pat, nested, cmd, forceit, group)
*/
brace_level = 0;
for (endpat = pat; *endpat && (*endpat != ',' || brace_level
- || endpat[-1] == '\\'); ++endpat)
+ || (endpat > pat && endpat[-1] == '\\')); ++endpat)
{
if (*endpat == '{')
brace_level++;
diff --git a/src/version.c b/src/version.c
index c06287242..718ea3111 100644
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 799,
+/**/
798,
/**/
797,