From: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
To: zsh-workers@sunsite.auc.dk
Subject: PATCH: yet another match-spec-cursor bug
Date: Fri, 28 Apr 2000 14:40:30 +0200 (MET DST) [thread overview]
Message-ID: <200004281240.OAA22300@beta.informatik.hu-berlin.de> (raw)
With partial word matching and matches like `c6.yo' and `c6.yo.old',
the cursor was left on the dot. Caused by a thinko in the code that
marks the cline structs to say in which of them characters were
missing.
Bye
Sven
Index: Src/Zle/compmatch.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/compmatch.c,v
retrieving revision 1.9
diff -u -r1.9 compmatch.c
--- Src/Zle/compmatch.c 2000/04/26 06:54:27 1.9
+++ Src/Zle/compmatch.c 2000/04/28 12:38:55
@@ -1917,14 +1917,8 @@
if (tn) {
diff = sub_join(o, n, tn, 0);
-
- if (po && po->prefix && cmp_anchors(n, pn, 0)) {
- po->flags |= CLF_MISS;
- po->max += diff;
- } else {
- o->flags |= CLF_MISS;
- o->max += diff;
- }
+ o->flags |= CLF_MISS;
+ o->max += diff;
n = tn;
po = o;
o = o->next;
--
Sven Wischnowsky wischnow@informatik.hu-berlin.de
next reply other threads:[~2000-04-28 12:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-28 12:40 Sven Wischnowsky [this message]
2000-05-02 5:18 Felix Rosencrantz
2000-05-02 11:39 Sven Wischnowsky
2000-05-03 5:14 Felix Rosencrantz
2000-05-03 8:51 Sven Wischnowsky
2000-05-04 14:52 Sven Wischnowsky
2000-05-05 5:53 Felix Rosencrantz
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=200004281240.OAA22300@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).