* PATCH: Re: `no more arguments' is not displayed.
@ 2000-05-09 9:42 Sven Wischnowsky
0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-05-09 9:42 UTC (permalink / raw)
To: zsh-workers
Tanaka Akira wrote:
> Z(4):akr@serein% Src/zsh -f
> serein% bindkey -e; fpath=($PWD/Completion/*(/)); autoload -U compinit; compinit -D; compdef _tst tst
> serein% zstyle ':completion:*' group-name ''
> serein% zstyle ':completion:*:messages' format %d
> serein% zstyle ':completion:*:descriptions' format %d
> serein% _tst () { _arguments ":desc1:(arg1)" }
> serein% tst a <TAB>
>
> This doesn't show `no more arguments' now.
> (Try `make check'.)
Oops.
Bye
Sven
Index: Completion/Base/_arguments
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Base/_arguments,v
retrieving revision 1.12
diff -u -r1.12 _arguments
--- Completion/Base/_arguments 2000/05/08 10:37:58 1.12
+++ Completion/Base/_arguments 2000/05/09 09:41:04
@@ -182,8 +182,10 @@
else
noargs='no arguments'
fi
- comparguments -O next direct odirect equal || return 1
-
+ if ! comparguments -O next direct odirect equal; then
+ _message "$noargs"
+ return 1
+ fi
opts=yes
_tags options
fi
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-05-09 9:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-09 9:42 PATCH: Re: `no more arguments' is not displayed Sven Wischnowsky
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).