zsh-workers
 help / color / mirror / code / Atom feed
* BUG: accept-and-menu-complete prepends glob pattern to next word
@ 1996-07-30  9:18 Andrej Borsenkow
  0 siblings, 0 replies; only message in thread
From: Andrej Borsenkow @ 1996-07-30  9:18 UTC (permalink / raw)
  To: Zsh workers mailing list

Hi!

I use `globcomplete' and `menucomplete'; <TAB> is bound as usual to
`expand-or-complete'; ^J is bound to `accept-and-menu-complete'. It gives
following effect:

% ls *.c<TAB>
% ls ansi2knr.c^J
% ls ansi2knr.c *.cbuiltin.c
                ^^^

It happens only if completing at the word end; if `completeinword' is set
and I complete in the middle, it works O.K.; completeion at the end still
gives error.

The proposed patch is just crude and empirical hack; probably, it should
really be fixed somewhere else - I failed to find where :-(

greetings

-------------------------------------------------------------------------
Andrej Borsenkow 		Fax:   +7 (095) 252 01 05
SNI ITS Moscow			Tel:   +7 (095) 252 13 88

NERV:  borsenkow.msk		E-Mail: borsenkow.msk@sni.de
-------------------------------------------------------------------------
=============================================================
--- zsh-3.0-pre4/Src/zle_tricky.c	Mon Jul 29 18:00:17 1996
+++ zsh.current/Src/zle_tricky.c	Tue Jul 30 12:09:15 1996
@@ -353,7 +353,7 @@
     inststrlen(" ", 1, 1);
     if (qparampre)
 	inststrlen(qparampre, 1, qparprelen);
-    if (lpre)
+    if (lpre && !ispattern)
 	inststrlen(lpre, 1, -1);
     if (lsuf)
 	inststrlen(lsuf, 0, -1);



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-07-30 21:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-30  9:18 BUG: accept-and-menu-complete prepends glob pattern to next word Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).