Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
zle vi-mode tilde bug?
- X-seq: zsh-workers 4676
- From: Phil Pennock <phil@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh Development Workers)
- Subject: zle vi-mode tilde bug?
- Date: Sat, 21 Nov 1998 21:33:52 +0000 (GMT)
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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author