vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 95b489ed74760223e629b13e29b8fc13c2f6db20 parent ed36186fcb7c7b572f9a225e7f2ab3902f930759 Author: Marc André Tanner <mat@brain-dump.org> Date: Thu, 18 Feb 2016 21:00:26 +0100 vis: move cursor to start of yanked range Close #176 Diffstat:
| M | vis-operators.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vis-operators.c b/vis-operators.c @@ -27,7 +27,7 @@ static size_t op_yank(Vis *vis, Text *txt, OperatorContext *c) { register_put(vis, c->reg, txt, &c->range); if (c->reg == &vis->registers[VIS_REG_DEFAULT]) register_put(vis, &vis->registers[VIS_REG_ZERO], txt, &c->range); - return c->pos; + return c->range.start; } static size_t op_put(Vis *vis, Text *txt, OperatorContext *c) {