From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: PATCH: make vimatchbracket more useful in emacs mode
Date: Tue, 10 May 2011 00:13:30 +0200 [thread overview]
Message-ID: <BANLkTi=AJh1=FB6ZX3iR_0b1O-NCCjB6pQ@mail.gmail.com> (raw)
When typing stuff in vi mode, then pressing esc%, vimatchbracket works
because the cursor jumps back a step, but in emacs mode it stays
"after" the character and nothing happens when you press ^X^B unless
you go left first, which is annoying. I don't think this will break
anything?
--- a/Src/Zle/zle_move.c
+++ b/Src/Zle/zle_move.c
@@ -536,6 +536,9 @@ vimatchbracket(UNUSED(char **args))
int ocs = zlecs, dir, ct;
unsigned char oth, me;
+ if ((zlecs == zlell || zleline[zlecs] == '\n') && zlecs > 0)
+ DECCS();
+
otog:
if (zlecs == zlell || zleline[zlecs] == '\n') {
zlecs = ocs;
--
Mikael Magnusson
reply other threads:[~2011-05-09 22:13 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='BANLkTi=AJh1=FB6ZX3iR_0b1O-NCCjB6pQ@mail.gmail.com' \
--to=mikachu@gmail.com \
--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).