zsh-workers
 help / color / mirror / code / Atom feed
* java completion wrong?
@ 2007-05-01 17:46 Mikael Magnusson
  0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2007-05-01 17:46 UTC (permalink / raw)
  To: zsh-workers

java hello <tab> completes commands instead of files, likewise for
java -jar hello.jar <tab>, the following patch seems to fix it, but I
don't know that much about java syntax so maybe it breaks something
else.

Index: Completion/Unix/Command/_java
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Command/_java,v
retrieving revision 1.16
diff -p -u -d -r1.16 _java
--- Completion/Unix/Command/_java	8 Jun 2005 12:45:35 -0000	1.16
+++ Completion/Unix/Command/_java	1 May 2007 17:44:58 -0000
@@ -45,7 +45,7 @@ java)
     '-help[print help message]' \
     '(- 1)-jar[specify a program capsulated as jar]:jar:_files -g
\*.jar\(-.\)' \
     '(-):class:_java_class -m main ${(kv)opt_args[(i)(-classpath|-cp)]}' \
-    '*::args: _normal' \
+    '*::args: _files' \
      && return 0
   ;;


-- 
Mikael Magnusson


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-05-01 17:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-01 17:46 java completion wrong? Mikael Magnusson

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).