zsh-workers
 help / color / mirror / code / Atom feed
* zle vi-mode tilde bug?
@ 1998-11-21 21:33 Phil Pennock
  1998-11-21 23:59 ` Bart Schaefer
  0 siblings, 1 reply; 4+ messages in thread
From: Phil Pennock @ 1998-11-21 21:33 UTC (permalink / raw)
  To: Zsh Development Workers

In many modern vi clones, there is an option 'tildeop', which makes the
tilde-key act like a normal operator, taking movement.  zsh has
something similiar, in that you can do this:
 bindkey -a '~' vi-oper-swap-case
which tries to do the same thing.  Unfortunately, it also seems to reset
the cursor to the start of the line (first non-blank) afterwards.

Looking at Zle/zle_vi.c (vioperswapcase) there is an explicit call to
vifirstnonblank() which explains the behaviour, but not the reasoning.
Just before that call, cs is reset to a saved value.

Am I missing something or is this a bug?  It seems ... strange.  As
though someone's expecting only vertical movements (~j).
-- 
--> Phil Pennock ; GAT d- s+:+ a22 C++(++++) UL++++/I+++/S+++/H+ P++@ L+++
E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++ DI+ D+
G+ e+ h* r y?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-11-22  4:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-11-21 21:33 zle vi-mode tilde bug? Phil Pennock
1998-11-21 23:59 ` Bart Schaefer
1998-11-22  3:31   ` Phil Pennock
1998-11-22  4:10     ` Bart Schaefer

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).