vis

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

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

commit e9570aae48e636561408f328af9552468e4b0f24
parent 7c47b3bc6555487f55a65cb03e4385f19b607dde
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 15 May 2018 10:59:46 +0200

sam: keep selections after :> command

Fix #700

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

diff --git a/sam.c b/sam.c @@ -1708,9 +1708,6 @@ static bool cmd_pipeout(Vis *vis, Win *win, Command *cmd, const char *argv[], Se int status = vis_pipe(vis, win->file, range, (const char*[]){ argv[1], NULL }, NULL, NULL, &buferr, read_buffer); - if (status == 0 && sel) - view_cursors_to(sel, range->start); - if (vis->interrupted) vis_info_show(vis, "Command cancelled"); else if (status != 0)