aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2014-09-13 17:06:33 +0200
committerMarc André Tanner <mat@brain-dump.org>2014-09-13 17:06:33 +0200
commit1ae7600bdc302da4647d5910bea8f2437646fb70 (patch)
treea96f3f7f24b78c2b0aea4e3e641ba8701f7f9d5b
parent24091be2710ca9a4aecec8f8dd1e8fc199646ee3 (diff)
downloadvis-1ae7600bdc302da4647d5910bea8f2437646fb70.tar.gz
vis-1ae7600bdc302da4647d5910bea8f2437646fb70.tar.xz
In normal mode 'r' should also replace new lines
-rw-r--r--vis.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index a80516a..8f8b78c 100644
--- a/vis.c
+++ b/vis.c
@@ -515,7 +515,8 @@ static void replace(const Arg *arg) {
Key k = getkey();
if (!k.str[0])
return;
- editor_replace_key(vis, k.str, strlen(k.str));
+ editor_delete_key(vis);
+ editor_insert_key(vis, k.str, strlen(k.str));
}
static void count(const Arg *arg) {