Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: default completion for X



Just had a look at deja.com and found a message form someone
complaining that completion for X command does not ccomplete filenames 
as the default.

I think we can use the patch below which makes filenames only be
completed if _x_arguments is called without arguments (i.e. from
_normal).


Bye
 Sven

diff -ru ../z.old/Completion/X/_x_arguments Completion/X/_x_arguments
--- ../z.old/Completion/X/_x_arguments	Fri Feb 18 11:06:44 2000
+++ Completion/X/_x_arguments	Fri Feb 18 11:56:20 2000
@@ -7,6 +7,8 @@
   '-geometry:geometry:_x_geometry'
 )
 
+(( $# )) || xargs=( "$xargs[@]" '*:files: _files' )
+
 long=$argv[(I)--]
 if (( long )); then
   argv[long]=( "$xargs[@]" -- )

--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author