Skip to content

Commit 6047e2c

Browse files
committed
patch 8.0.1189: E172 is not actually useful
Problem: E172 is not actually useful, it's only on Unix anyway. Solution: Remove the check and the error.
1 parent 1d68d9b commit 6047e2c

3 files changed

Lines changed: 2 additions & 29 deletions

File tree

runtime/doc/message.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,6 @@ changed. To avoid the message reset the 'warn' option.
463463
Something inside Vim went wrong and resulted in a NULL pointer. If you know
464464
how to reproduce this problem, please report it. |bugs|
465465

466-
*E172* >
467-
Only one file name allowed
468-
469-
The ":edit" command only accepts one file name. When you want to specify
470-
several files for editing use ":next" |:next|.
471-
472466
*E41* *E82* *E83* *E342* >
473467
Out of memory!
474468
Out of memory! (allocating {number} bytes)

src/ex_docmd.c

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5085,29 +5085,6 @@ expand_filename(
50855085
{
50865086
if (n == 2)
50875087
{
5088-
#ifdef UNIX
5089-
/*
5090-
* Only for Unix we check for more than one file name.
5091-
* For other systems spaces are considered to be part
5092-
* of the file name.
5093-
* Only check here if there is no wildcard, otherwise
5094-
* ExpandOne() will check for errors. This allows
5095-
* ":e `ls ve*.c`" on Unix.
5096-
*/
5097-
if (!has_wildcards)
5098-
for (p = eap->arg; *p; ++p)
5099-
{
5100-
/* skip escaped characters */
5101-
if (p[1] && (*p == '\\' || *p == Ctrl_V))
5102-
++p;
5103-
else if (VIM_ISWHITE(*p))
5104-
{
5105-
*errormsgp = (char_u *)_("E172: Only one file name allowed");
5106-
return FAIL;
5107-
}
5108-
}
5109-
#endif
5110-
51115088
/*
51125089
* Halve the number of backslashes (this is Vi compatible).
51135090
* For Unix and OS/2, when wildcards are expanded, this is

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -761,6 +761,8 @@ static char *(features[]) =
761761

762762
static int included_patches[] =
763763
{ /* Add new patch number below this line */
764+
/**/
765+
1189,
764766
/**/
765767
1188,
766768
/**/

0 commit comments

Comments
 (0)