vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 1e95fcfd90ecd015ea8fbb24cefbdb86db9d3cf6
parent 0e7adabfcbafbe410bf2501b8167cbe10fc6dae0
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 24 Sep 2014 19:39:21 +0200

'r' should not move the cursor

Diffstat:
Mvis.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/vis.c b/vis.c @@ -672,8 +672,10 @@ static void replace(const Arg *arg) { Key k = getkey(); if (!k.str[0]) return; + size_t pos = window_cursor_get(vis->win->win); editor_delete_key(vis); editor_insert_key(vis, k.str, strlen(k.str)); + window_cursor_to(vis->win->win, pos); } static void count(const Arg *arg) {