* Re: _files -g and subdirectory completion
@ 2000-02-28 11:53 Sven Wischnowsky
0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 2000-02-28 11:53 UTC (permalink / raw)
To: zsh-workers
Alexandre Duret-Lutz wrote:
> What's happening with _files -g ? I am missing a new style ?
>
> ~/tmp/m1 % zsh -f
> phobos% autoload -U compinit
> phobos% compinit
> phobos% mkdir -p foo/bar
> phobos% zcat foo/<TAB>
>
> Nothing complete. It behaves like this with all completions
> functions using _files -g.
Yep. That break in _path_files already irritated me some time
ago. Let's try without it...
I'm awfully sorry about all this mess with file completion. Sigh.
Bye
Sven
diff -ru ../z.old/Completion/Core/_path_files Completion/Core/_path_files
--- ../z.old/Completion/Core/_path_files Mon Feb 28 12:01:23 2000
+++ Completion/Core/_path_files Mon Feb 28 12:52:20 2000
@@ -346,9 +346,13 @@
# if none of the patterns match.
if [[ -z "$tpre$tsuf" && -n "$pre$suf" ]]; then
- tmp1=( "$tmp2[@]" )
pfxsfx=(-S '' "$pfxsfx[@]")
- break
+ ### Don't remember what the break was good for. We explicitly
+ ### execute this only when there are no matches in the directory,
+ ### so why continue?
+ ###
+ ### tmp1=( "$tmp2[@]" )
+ ### break
elif [[ "$haspats" = no && -z "$tpre$tsuf" &&
"$pre" = */ && -z "$suf" ]]; then
PREFIX="${opre}"
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
^ permalink raw reply [flat|nested] 2+ messages in thread
* _files -g and subdirectory completion
@ 2000-02-28 11:02 Alexandre Duret-Lutz
0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Duret-Lutz @ 2000-02-28 11:02 UTC (permalink / raw)
To: zsh-workers
What's happening with _files -g ? I am missing a new style ?
~/tmp/m1 % zsh -f
phobos% autoload -U compinit
phobos% compinit
phobos% mkdir -p foo/bar
phobos% zcat foo/<TAB>
Nothing complete. It behaves like this with all completions
functions using _files -g.
--
Alexandre Duret-Lutz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-02-28 11:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-28 11:53 _files -g and subdirectory completion Sven Wischnowsky
-- strict thread matches above, loose matches on Subject: below --
2000-02-28 11:02 Alexandre Duret-Lutz
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).