* [PATCH] Completion: Small fixes for _files, _object_files
@ 2018-06-11 11:01 dana
0 siblings, 0 replies; only message in thread
From: dana @ 2018-06-11 11:01 UTC (permalink / raw)
To: Zsh workers
I noticed that _object_files doesn't respect the description set through
_arguments, nor the default one in the function itself. This seems to fix it
(and i made a similar change in _files) — i *think* this is the order these
should be passed in generally, isn't it?
dana
diff --git a/Completion/Unix/Type/_files b/Completion/Unix/Type/_files
index 2b0c5580a..5df22ea46 100644
--- a/Completion/Unix/Type/_files
+++ b/Completion/Unix/Type/_files
@@ -121,7 +121,7 @@ for def in "$pats[@]"; do
done
fi
else
- _path_files "$expl[@]" -g "$pat" "$opts[@]" && ret=0
+ _path_files -g "$pat" "$opts[@]" "$expl[@]" && ret=0
fi
done
(( ret )) || break
diff --git a/Completion/Unix/Type/_object_files b/Completion/Unix/Type/_object_files
index 595265116..6b931372f 100644
--- a/Completion/Unix/Type/_object_files
+++ b/Completion/Unix/Type/_object_files
@@ -9,4 +9,4 @@ __object_file() {
$REPLY = (core*|*.core) ]]
}
-_files -g '*(-.e,__object_file,)'
+_files -g '*(-.e,__object_file,)' "$@" "${(@)expl}"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-11 11:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-11 11:01 [PATCH] Completion: Small fixes for _files, _object_files dana
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).