diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 17:06:33 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2014-09-13 17:06:33 +0200 |
| commit | 1ae7600bdc302da4647d5910bea8f2437646fb70 (patch) | |
| tree | a96f3f7f24b78c2b0aea4e3e641ba8701f7f9d5b /vis.c | |
| parent | 24091be2710ca9a4aecec8f8dd1e8fc199646ee3 (diff) | |
| download | vis-1ae7600bdc302da4647d5910bea8f2437646fb70.tar.gz vis-1ae7600bdc302da4647d5910bea8f2437646fb70.tar.xz | |
In normal mode 'r' should also replace new lines
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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) { |
