dvtm

dynamic virtual terminal manager - with my changes
git clone https://pi.duncano.de/git/dvtm.git
Log | Files | Refs | README | LICENSE

commit 3cacaf41cdc4c04b01ca7bed926ea5d065e3305c
parent 843aaa3819959bc827ba0fccd4e66569f3074615
Author: Mark Edgar <medgar123@gmail.com>
Date:   Sat, 28 Jun 2014 00:03:03 +0200

Make '0' behave as in vi when in copymode.

Diffstat:
vt.c | 8+++++++-
1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/vt.c b/vt.c @@ -2014,7 +2014,13 @@ void vt_copymode_keypress(Vt *t, int keycode) cmdline_keypress(t->cmdline, keycode); } else { switch (keycode) { - case '0' ... '9': + case '0': + if (t->copymode_cmd_multiplier == 0) { + b->curs_col = 0; + break; + } + /* fall through */ + case '1' ... '9': t->copymode_cmd_multiplier = (t->copymode_cmd_multiplier * 10) + (keychar - '0'); return; case KEY_PPAGE: