vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 4db45b615aa0dd861e82ab7bc1c3df2535a1bdbb
parent 049d1568577b8ea7e46e93e5e26150ade8d73e47
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed,  6 Jan 2016 10:59:40 +0100

vis: apply <C-v> to all cursors not only primary one

Diffstat:
Mmain.c | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git 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; }