From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: RE: PATCH: completion positions
Date: Thu, 25 Jan 2001 16:14:36 +0100 (MET) [thread overview]
Message-ID: <200101251514.QAA18940@beta.informatik.hu-berlin.de> (raw)
In-Reply-To: Felix Rosencrantz's message of Wed, 24 Jan 2001 22:45:05 -0800 (PST)
Felix Rosencrantz wrote:
> I've attached a patch for the first attempt at a test for insert_positions.
> I think there is a bug in the last test case, so I haven't tried to check in.
>
> Sven, could you look at it.
>
> I think the output should look like:
> +>line: {tst a}{.bC.cB.dA}
> +>COMPADD:{}
> +>INSERT_POSITIONS:{5:14}
> +>NO:{aA.bC.cB.dA}
> +>NO:{aD.bC.cB.dA}
>
> But zsh seems to want to leave the cursor after the C, and insert_positions has
> three values rather than 2.
Indeed. A bug when merging two CLF_MID entries. This should fix it.
Bye
Sven
Index: Src/Zle/compmatch.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compmatch.c,v
retrieving revision 1.30
diff -u -r1.30 compmatch.c
--- Src/Zle/compmatch.c 2001/01/15 10:44:15 1.30
+++ Src/Zle/compmatch.c 2001/01/25 15:13:19
@@ -1627,7 +1627,7 @@
*orest = NULL;
if (nrest)
*nrest = n;
- if (n)
+ if (n && n->wlen)
ot->flags |= CLF_MISS;
return;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2001-01-25 15:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-25 15:14 Sven Wischnowsky [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-01-25 6:45 Felix Rosencrantz
2001-01-19 13:43 Sven Wischnowsky
2001-01-16 6:41 Felix Rosencrantz
2001-01-15 10:42 Sven Wischnowsky
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=200101251514.QAA18940@beta.informatik.hu-berlin.de \
--to=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.auc.dk \
/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).