Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: _path_files -g
- X-seq: zsh-workers 9278
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: _path_files -g
- Date: Sun, 09 Jan 2000 18:44:31 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Completion of .dvi files has seized up because _path_files insists on using
$fignore. I don't think fignore or even ignored-suffixes should be used
with an explicit glob pattern. This is how it used to work. You could
work around it with ignored-suffixes, but styles are for user preferences,
not to fix up things that should work anyway, so I think the same argument
as for fignore applies.
Index: Completion/Core/_path_files
===================================================================
RCS file: /home/pws/CVSROOT/projects/zsh/Completion/Core/_path_files,v
retrieving revision 1.13
diff -u -r1.13 _path_files
--- Completion/Core/_path_files 2000/01/07 19:42:02 1.13
+++ Completion/Core/_path_files 2000/01/08 21:58:07
@@ -160,7 +160,7 @@
# If given no `-F' option, we want to use the `ignored-suffixes'-style.
-if (( ! $#ignore )); then
+if [[ $#ignore -eq 0 && -z $gopt ]]; then
if zstyle -a ":completion${curcontext}:files" ignored-suffixes ignore; then
ignore=(-F "( $ignore )")
else
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author