Mercurial > vim
diff src/ex_cmds.c @ 1067:0b056c1350dd v7.0.193
updated for version 7.0-193
author | vimboss |
---|---|
date | Tue, 13 Feb 2007 02:47:22 +0000 |
parents | 7644c80ca87b |
children | 17b9587ff6d5 |
line wrap: on
line diff
--- 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) {