]> granicus.if.org Git - vim/commitdiff
patch 8.0.1189: E172 is not actually useful v8.0.1189
authorBram Moolenaar <Bram@vim.org>
Sat, 14 Oct 2017 13:24:49 +0000 (15:24 +0200)
committerBram Moolenaar <Bram@vim.org>
Sat, 14 Oct 2017 13:24:49 +0000 (15:24 +0200)
Problem:    E172 is not actually useful, it's only on Unix anyway.
Solution:   Remove the check and the error.

runtime/doc/message.txt
src/ex_docmd.c
src/version.c

index 5eeba0cf4ad7dcc7754c71ec213fd19d4cc169e1..dbc4280b70361d57be062030755389b5b9aefe3e 100644 (file)
@@ -463,12 +463,6 @@ changed.  To avoid the message reset the 'warn' option.
 Something inside Vim went wrong and resulted in a NULL pointer.  If you know
 how to reproduce this problem, please report it. |bugs|
 
-                                                       *E172*  >
-  Only one file name allowed
-
-The ":edit" command only accepts one file name.  When you want to specify
-several files for editing use ":next" |:next|.
-
                                                *E41* *E82* *E83* *E342*  >
   Out of memory!
   Out of memory!  (allocating {number} bytes)
index e2dfd9225cba27c04d18d311ac71727449c3d65d..bb1ae46907fc469b24a741601dc42ac6b914e5e7 100644 (file)
@@ -5085,29 +5085,6 @@ expand_filename(
        {
            if (n == 2)
            {
-#ifdef UNIX
-               /*
-                * Only for Unix we check for more than one file name.
-                * For other systems spaces are considered to be part
-                * of the file name.
-                * Only check here if there is no wildcard, otherwise
-                * ExpandOne() will check for errors. This allows
-                * ":e `ls ve*.c`" on Unix.
-                */
-               if (!has_wildcards)
-                   for (p = eap->arg; *p; ++p)
-                   {
-                       /* skip escaped characters */
-                       if (p[1] && (*p == '\\' || *p == Ctrl_V))
-                           ++p;
-                       else if (VIM_ISWHITE(*p))
-                       {
-                           *errormsgp = (char_u *)_("E172: Only one file name allowed");
-                           return FAIL;
-                       }
-                   }
-#endif
-
                /*
                 * Halve the number of backslashes (this is Vi compatible).
                 * For Unix and OS/2, when wildcards are expanded, this is
index 874203504270e78248b3d6bae86e58b181cc702f..451eb36c8648e1195184a88dae975f71a1926aa4 100644 (file)
@@ -761,6 +761,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1189,
 /**/
     1188,
 /**/