* PATCH: make vimatchbracket more useful in emacs mode
@ 2011-05-09 22:13 Mikael Magnusson
0 siblings, 0 replies; only message in thread
From: Mikael Magnusson @ 2011-05-09 22:13 UTC (permalink / raw)
To: zsh workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-05-09 22:13 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-09 22:13 PATCH: make vimatchbracket more useful in emacs mode Mikael Magnusson
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).