diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-24 19:39:21 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-24 19:39:21 +0200 |
| commit | cd8518becf7938c1fd59c8cb0cc494c5bbd17ee3 (patch) | |
| tree | 3a53a4698a709d4318eaca4d6f2f61e12fe1a987 | |
| parent | ea787fd572c791447b02801e02c5f46099283a00 (diff) | |
| download | vis-cd8518becf7938c1fd59c8cb0cc494c5bbd17ee3.tar.gz vis-cd8518becf7938c1fd59c8cb0cc494c5bbd17ee3.tar.xz | |
'r' should not move the cursor
| -rw-r--r-- | vis.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) { |
