Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
setopt globcomplete screws up accept-and-menu-complete
- X-seq: zsh-workers 1663
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx
- Subject: setopt globcomplete screws up accept-and-menu-complete
- Date: Mon, 15 Jul 1996 23:05:55 -0700
- Reply-to: schaefer@xxxxxxx
automenu on
completealiases off
completeinword on
globcomplete on
menucomplete off
"^X^I" accept-and-menu-complete
zagzig<1> echo $ZSH_VERSION
3.0-pre3
zagzig<2> ls -l z*<TAB><TAB>
zagzig<2> ls -l zle_bindings.c<C-x><TAB>
zagzig<2> ls -l zle_bindings.c z*zle_bindings.pro
ls: z*zle_bindings.pro: No such file or directory
Incidentally, 3.0-pre2 behaves slightly differently:
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 following seems to fix acceptandmenucomplete() in pre3. Am I off base?
*** zsh-3.0-pre3/Src/zle_tricky.c Mon Jul 15 00:07:23 1996
--- zsh-3.0-pre3-work/Src/zle_tricky.c Mon Jul 15 22:46:49 1996
***************
*** 353,359 ****
inststrlen(" ", 1, 1);
if (qparampre)
inststrlen(qparampre, 1, qparprelen);
! if (lpre)
inststrlen(lpre, 1, -1);
if (lsuf)
inststrlen(lsuf, 0, -1);
--- 353,359 ----
inststrlen(" ", 1, 1);
if (qparampre)
inststrlen(qparampre, 1, qparprelen);
! if (lpre && (unset(GLOBCOMPLETE) || !hasspecial(lpre)))
inststrlen(lpre, 1, -1);
if (lsuf)
inststrlen(lsuf, 0, -1);
***************
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.nbn.com/people/lantern
New male in /home/schaefer:
>N 2 Justin William Schaefer Sat May 11 03:43 53/4040 "Happy Birthday"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author