From: Peter Stephenson <pws@csr.com>
To: "Zsh hackers list" <zsh-workers@sunsite.dk>
Subject: Re: PATCH: fix the word boundary stuff
Date: Fri, 18 Apr 2008 12:32:20 +0100 [thread overview]
Message-ID: <200804181132.m3IBWLsE015665@news01.csr.com> (raw)
In-Reply-To: <237967ef0804180419y54de9792x77686575f66ff679@mail.gmail.com>
"Mikael Magnusson" wrote:
> This patch broke _backward-delete-to-/ for me. It was posted here some
> time back, here's the file I use: http://mika.l3ib.org/s/dot-delete-to
>
> Without the patch, on the commandline
> foo bar/baz\ blarg
> when i press ctrl-w i first get "foo bar/" and then "foo ", with the
> patch i get "foo bar/baz\", "foo bar" and "foo".
That's likely to be this. I scanned for similar problems but didn't see
any.
Index: Src/Zle/zle_word.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_word.c,v
retrieving revision 1.11
diff -u -r1.11 zle_word.c
--- Src/Zle/zle_word.c 17 Apr 2008 12:52:17 -0000 1.11
+++ Src/Zle/zle_word.c 18 Apr 2008 11:30:08 -0000
@@ -464,14 +464,14 @@
while (x) {
int pos = x;
DECPOS(pos);
- if (ZC_iword(zleline[x]))
+ if (ZC_iword(zleline[pos]))
break;
x = pos;
}
while (x) {
int pos = x;
DECPOS(pos);
- if (!ZC_iword(zleline[x]))
+ if (!ZC_iword(zleline[pos]))
break;
x = pos;
}
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
next prev parent reply other threads:[~2008-04-18 11:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-17 12:08 Peter Stephenson
2008-04-18 11:19 ` Mikael Magnusson
2008-04-18 11:32 ` Peter Stephenson [this message]
2008-04-18 11:38 ` Mikael Magnusson
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=200804181132.m3IBWLsE015665@news01.csr.com \
--to=pws@csr.com \
--cc=zsh-workers@sunsite.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).