Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Completion quirks
- X-seq: zsh-workers 213
- From: Wayne Davison <wayne@xxxxxxxxxxxxxxxxxx>
- To: Zefram <A.Main@xxxxxxxxxxxxxxxxx>
- Subject: Re: Completion quirks
- Date: Sat, 15 Jul 1995 11:54:41 -0700 (PDT)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <711.199507150258@xxxxxxxxxxxxxxxxxxxxxxx> from "Zefram" at Jul 15, 95 03:58:11 am
> The patch below fixes both of the observed problems with REC_EXACT (one
> of which was present in beta10 and probably earlier betas too).
Much appreciated! I still observe the wrong "exact" match being appended
when REC_EXACT is set without any menu completion options, but all the
other problems have been solved. This remaining problem turns out to be
some missing braces on one of the last ifs in domatch(). This problem is
not in the stock beta10 since that if used to have just one statement (it
used commas to do multiple assignments). I've appended a patch.
Also, thanks for pointing out what rec_exact does -- I've turned it
off. It was an option I blindly snagged from the example zshrc that
comes with zsh -- perhaps it should be removed to make it less
confusing for new zsh users?
..wayne..
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Index: zle_tricky.c
@@ -1462,12 +1462,13 @@
*fm = t;
*sp = 100000;
}
- if (!ispattern && (sl = strlen(t)) < *sp)
+ if (!ispattern && (sl = strlen(t)) < *sp) {
*sp = sl;
if (l == fmatches)
fshortest = t;
else
shortest = t;
+ }
if (sav)
*e = sav;
}
---8<------8<------8<------8<---cut here--->8------>8------>8------>8---
Messages sorted by:
Reverse Date,
Date,
Thread,
Author