From cd8518becf7938c1fd59c8cb0cc494c5bbd17ee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 24 Sep 2014 19:39:21 +0200 Subject: 'r' should not move the cursor --- vis.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vis.c b/vis.c index 4d15fdb..110891f 100644 --- 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) { -- cgit v1.2.3