Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: setopt globcomplete screws up accept-and-menu-complete



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