vis

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

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

commit c7f67605ed319ef52e47d665fcc0b8ceeb8a5f5f
parent d9c8edadfe2a316fac279076b6006a1e3c00e239
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 13 Jun 2017 15:32:29 +0200

vis: normalize selections after motions

Merge overlapping selections.

Fix #582

Diffstat:
Mvis.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/vis.c b/vis.c @@ -984,10 +984,14 @@ void vis_do(Vis *vis) { if (vis->mode->visual) view_selections_save(sel); view_cursors_to(sel, pos); + if (vis->mode->visual) + view_selection_clear(sel); } } } + view_selections_normalize(view); + if (a->op) { if (a->op == &vis_operators[VIS_OP_YANK] ||