From: Carl Drougge <zsh@z42.net>
To: zsh-workers@zsh.org
Subject: [PATCH] copy-prev-shell-word broken since 4.3.11
Date: Sun, 29 Dec 2013 04:04:56 +0100 [thread overview]
Message-ID: <20131229030456.GC23678@s.lundagatan.com> (raw)
I used to be able to use copy-prev-shell-word to copy the word to the left of
my cursor. At some point this broke, always giving the last word on the line,
and I couldn't be bothered to look into it. Now I have looked at it. It works
in 4.3.10, not in 4.3.11.
I have never looked at the zsh source before, but hopefully this patch doesn't
break something else. The bufferwords function (and the whole lexer) seems
pretty, uh, frightening.
--- Src/Zle/zle_misc.c.orig 2013-12-29 03:49:50.485020686 +0100
+++ Src/Zle/zle_misc.c 2013-12-29 03:35:06.661038824 +0100
@@ -843,7 +843,7 @@
if (zmult <= 0)
return 1;
- if ((l = bufferwords(NULL, NULL, &i, 0))) {
+ if ((l = bufferwords(NULL, NULL, &i, LEXFLAGS_ZLE))) {
i -= (zmult-1);
if (i < 0)
return 1;
next reply other threads:[~2013-12-29 3:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-29 3:04 Carl Drougge [this message]
2013-12-29 6:26 ` Bart Schaefer
2014-01-02 20:49 ` Peter Stephenson
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=20131229030456.GC23678@s.lundagatan.com \
--to=zsh@z42.net \
--cc=zsh-workers@zsh.org \
/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).