Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: setopt globcomplete screws up accept-and-menu-complete
- X-seq: zsh-workers 1805
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: schaefer@xxxxxxx
- Subject: Re: setopt globcomplete screws up accept-and-menu-complete
- Date: Sun, 28 Jul 1996 23:45:23 +0200 (MET DST)
- Cc: zsh-workers@xxxxxxxxxxxxxxx
- In-reply-to: <960715230556.ZM1690@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Jul 15, 96 11:05:55 pm"
Bart wrote:
> automenu on
> completealiases off
> completeinword on
> globcomplete on
> menucomplete off
>
> "^X^I" accept-and-menu-complete
[...]
> zagzig[72] ls -l z*<TAB><TAB>
> zagzig[72] ls -l zle_bindings.c<C-x><TAB>
> zagzig[72] ls -l zle_bindings.c z\*zle_bindings.pro
The fix is included below.
Zoltan
--- zle_tricky.c 1996/07/28 21:09:40 2.68
+++ zle_tricky.c 1996/07/28 21:33:16
@@ -353,9 +353,9 @@
inststrlen(" ", 1, 1);
if (qparampre)
inststrlen(qparampre, 1, qparprelen);
- if (lpre)
+ if (lpre && !ispattern)
inststrlen(lpre, 1, -1);
- if (lsuf)
+ if (lsuf && !ispattern)
inststrlen(lsuf, 0, -1);
menupos = cs;
menuend = cs + (lsuf ? strlen(lsuf) : 0);
Messages sorted by:
Reverse Date,
Date,
Thread,
Author