Mercurial > vim
comparison src/misc1.c @ 2966:aa998de9f959 v7.3.255
updated for version 7.3.255
Problem: When editing a file such as "File[2010-08-15].vim" an E16 error is
given. (Manuel Stol)
Solution: Don't give an error for failing to compile the regexp.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 20 Jul 2011 15:04:58 +0200 |
parents | 9f71f5a526af |
children | aa40bddeea9a |
comparison
equal
deleted
inserted
replaced
2965:f2de38a019a2 | 2966:aa998de9f959 |
---|---|
9041 vim_free(buf); | 9041 vim_free(buf); |
9042 return 0; | 9042 return 0; |
9043 } | 9043 } |
9044 | 9044 |
9045 /* compile the regexp into a program */ | 9045 /* compile the regexp into a program */ |
9046 if (flags & EW_NOERROR) | |
9047 ++emsg_silent; | |
9046 regmatch.rm_ic = TRUE; /* Always ignore case */ | 9048 regmatch.rm_ic = TRUE; /* Always ignore case */ |
9047 regmatch.regprog = vim_regcomp(pat, RE_MAGIC); | 9049 regmatch.regprog = vim_regcomp(pat, RE_MAGIC); |
9050 if (flags & EW_NOERROR) | |
9051 --emsg_silent; | |
9048 vim_free(pat); | 9052 vim_free(pat); |
9049 | 9053 |
9050 if (regmatch.regprog == NULL) | 9054 if (regmatch.regprog == NULL) |
9051 { | 9055 { |
9052 vim_free(buf); | 9056 vim_free(buf); |