aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-01-06 10:59:40 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-01-06 10:59:40 +0100
commitc000f5c19cf78539c954a75cc37fc8f6dced4f3a (patch)
treea52f6cc93bf7550155129b5756bdccb43765e42f
parent48cd210826eb64e68f9f1642a32317d7b88cbffa (diff)
downloadvis-c000f5c19cf78539c954a75cc37fc8f6dced4f3a.tar.gz
vis-c000f5c19cf78539c954a75cc37fc8f6dced4f3a.tar.xz
vis: apply <C-v> to all cursors not only primary one
-rw-r--r--main.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/main.c b/main.c
index efb7514..92ca439 100644
--- a/main.c
+++ b/main.c
@@ -1519,11 +1519,8 @@ static const char *insert_verbatim(Vis *vis, const char *keys, const Arg *arg) {
}
}
- if (len > 0) {
- size_t pos = view_cursor_get(vis_view(vis));
- vis_insert(vis, pos, data, len);
- view_cursor_to(vis_view(vis), pos + len);
- }
+ if (len > 0)
+ vis_insert_key(vis, data, len);
return keys;
}