From 1ae7600bdc302da4647d5910bea8f2437646fb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sat, 13 Sep 2014 17:06:33 +0200 Subject: In normal mode 'r' should also replace new lines --- vis.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vis.c') 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) { -- cgit v1.2.3