From: Andrej Borsenkow <borsenkow.msk@sni.de>
To: Zsh workers mailing list <zsh-workers@math.gatech.edu>
Subject: BUG: accept-and-menu-complete prepends glob pattern to next word
Date: Tue, 30 Jul 1996 13:18:31 +0400 (MOW) [thread overview]
Message-ID: <Pine.SV4.3.95.960730124357.23616B-100000@itsrm1> (raw)
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);
reply other threads:[~1996-07-30 21:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Pine.SV4.3.95.960730124357.23616B-100000@itsrm1 \
--to=borsenkow.msk@sni.de \
--cc=zsh-workers@math.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).