aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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) {