* PATCH: _xloadimage
@ 2002-10-17 8:42 Oliver Kiddle
0 siblings, 0 replies; only message in thread
From: Oliver Kiddle @ 2002-10-17 8:42 UTC (permalink / raw)
To: Zsh workers
Without an rc file for xli/xloadimage, no file extensions are found so
file completion wasn't working. This patch makes it use a default set of
extensions.
Index: _xloadimage
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/X/Command/_xloadimage,v
retrieving revision 1.2
diff -u -r1.2 _xloadimage
--- _xloadimage 16 Jan 2002 16:29:52 -0000 1.2
+++ _xloadimage 17 Oct 2002 08:38:20 -0000
@@ -33,8 +33,13 @@
'*-global[following option applies to all images]'
)
fi
-ipath=( . ${=rc[1]#*:} )
-extension=( ${=rc[2]#*:} )
+ipath=( . ${=${(M)rc:#*path:*}#*:} )
+extension=( ${=${(M)rc:#*extensions:*}#*:} )
+# set default file extensions if there are none
+(( $#extension )) || extension=(
+ .gif .jpg .jpeg .png .rle .csun .msun .sun .face
+ .xbm .bm .fbm .pcx .ppm .pgm .pbm .tga .xpm
+)
# all options are valid after -help so no exclusion lists below
_x_arguments "$args[@]" \
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-17 8:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-17 8:42 PATCH: _xloadimage Oliver Kiddle
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).