summaryrefslogtreecommitdiffstats
path: root/src/ex_cmds.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2007-02-13 02:47:22 +0000
committerBram Moolenaar <Bram@vim.org>2007-02-13 02:47:22 +0000
commitb01a8b749b1df035da491efca311ef50fd3d57eb (patch)
treee96b263466121571d5cf2fccdffe02d6ad736412 /src/ex_cmds.c
parent47b8b15b5f7f62d65e6ef55f5042453e2735055d (diff)
updated for version 7.0-193v7.0.193
Diffstat (limited to 'src/ex_cmds.c')
-rw-r--r--src/ex_cmds.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ex_cmds.c b/src/ex_cmds.c
index 33db477f80..1bb7ba0966 100644
--- a/src/ex_cmds.c
+++ b/src/ex_cmds.c
@@ -6967,6 +6967,14 @@ ex_drop(eap)
*/
set_arglist(eap->arg);
+ /*
+ * Expanding wildcards may result in an empty argument list. E.g. when
+ * editing "foo.pyc" and ".pyc" is in 'wildignore'. Assume that we
+ * already did an error message for this.
+ */
+ if (ARGCOUNT == 0)
+ return;
+
# ifdef FEAT_WINDOWS
if (cmdmod.tab)
{