Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Re: completion at beginning of line
- X-seq: zsh-workers 11966
- From: Clint Adams <schizo@xxxxxxxxxx>
- To: Tanaka Akira <akr@xxxxxxxx>
- Subject: PATCH: Re: completion at beginning of line
- Date: Sun, 18 Jun 2000 10:14:07 -0400
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <hvog0qb72qf.fsf@xxxxxxxxxxxxxxx>; from akr@xxxxxxxx on Sun, Jun 18, 2000 at 06:33:28PM +0900
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <hvog0qb72qf.fsf@xxxxxxxxxxxxxxx>
> Z(2):akr@flux% Src/zsh -f
> flux% bindkey -e; autoload -U compinit; compinit -D
> flux% <TAB>
> _main_complete:52: command not found: no
> zsh: do you wish to see all 2100 possibilities (525 lines)?
>
> Hm. Why?
This seems to clear up that error and do what was intended.
There looks to be a similar potential problem on line 44.
Index: Completion/Core/_main_complete
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Core/_main_complete,v
retrieving revision 1.28
diff -u -r1.28 _main_complete
--- Completion/Core/_main_complete 2000/06/13 11:45:26 1.28
+++ Completion/Core/_main_complete 2000/06/18 14:10:42
@@ -49,7 +49,7 @@
fi
if [[ "$compstate[insert]" = tab* ]]; then
- { "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) &&
+ { [[ "$tmp" = (|[[:blank:]]*)(yes|true|on|1)(|[[:blank:]]*) ]] &&
{ [[ "$curcontext" != :* || -z "$compstate[vared]" ]] ||
zstyle -t ":completion:vared${curcontext}:" insert-tab } } && return 0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author