]> granicus.if.org Git - vim/commitdiff
updated for version 7.3.255 v7.3.255
authorBram Moolenaar <Bram@vim.org>
Wed, 20 Jul 2011 13:04:58 +0000 (15:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 20 Jul 2011 13:04:58 +0000 (15:04 +0200)
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.

src/ex_docmd.c
src/misc1.c
src/version.c
src/vim.h

index 602bbfab457bf04d4ba09fe8735a351ebe5f670c..3e80b329b04631c9fc586989de62416e2c2bcbf9 100644 (file)
@@ -7069,7 +7069,7 @@ alist_expand(fnum_list, fnum_len)
        old_arg_count = GARGCOUNT;
        if (expand_wildcards(old_arg_count, old_arg_files,
                    &new_arg_file_count, &new_arg_files,
-                   EW_FILE|EW_NOTFOUND|EW_ADDSLASH) == OK
+                   EW_FILE|EW_NOTFOUND|EW_ADDSLASH|EW_NOERROR) == OK
                && new_arg_file_count > 0)
        {
            alist_set(&global_alist, new_arg_file_count, new_arg_files,
index c7f2f805961e6abb7a3ff307b98918d24c06d40c..a573b3b999d0258411979be8b2cafe7a95aa45ad 100644 (file)
@@ -9043,8 +9043,12 @@ dos_expandpath(
     }
 
     /* compile the regexp into a program */
+    if (flags & EW_NOERROR)
+       ++emsg_silent;
     regmatch.rm_ic = TRUE;             /* Always ignore case */
     regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
+    if (flags & EW_NOERROR)
+       --emsg_silent;
     vim_free(pat);
 
     if (regmatch.regprog == NULL)
index 276bccbf71c06359a4392221e8b9a6acec4c2f7d..2f2307f1e4a17384e45bcdbda054a91614985853 100644 (file)
@@ -709,6 +709,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    255,
 /**/
     254,
 /**/
index a51834f728bc9831ea2c7c0900bb5550f2939086..a1a970819115b0efe3aa2a740997a95edf4c83b4 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -815,6 +815,7 @@ extern char *(*dyn_libintl_textdomain)(const char *domainname);
 #define EW_EXEC                0x40    /* executable files */
 #define EW_PATH                0x80    /* search in 'path' too */
 #define EW_ICASE       0x100   /* ignore case */
+#define EW_NOERROR     0x200   /* no error for bad regexp */
 /* Note: mostly EW_NOTFOUND and EW_SILENT are mutually exclusive: EW_NOTFOUND
  * is used when executing commands and EW_SILENT for interactive expanding. */