diff options
Diffstat (limited to 'src/fileio.c')
-rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 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++; |