From c000f5c19cf78539c954a75cc37fc8f6dced4f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 6 Jan 2016 10:59:40 +0100 Subject: vis: apply to all cursors not only primary one --- main.c | 7 ++----- 1 file 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; } -- cgit v1.2.3