vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 2f6ba687c274231c826632251bdcca40496b0c52 parent d3908134772a3f910c0602953efe19465afcd915 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 15 Jun 2017 11:10:09 +0200 view: make sure primary selection is visible Diffstat:
| M | view.c | | | 3 | +++ |
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/view.c b/view.c @@ -1055,6 +1055,9 @@ void view_selections_primary_set(Selection *s) { if (!s) return; s->view->selection = s; + Mark anchor = s->anchor; + view_cursors_to(s, view_cursors_pos(s)); + s->anchor = anchor; } Selection *view_selections_prev(Selection *s) {