aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2018-05-15 10:59:46 +0200
committerMarc André Tanner <mat@brain-dump.org>2018-05-16 13:24:01 +0200
commit4673519c93a40fe0ed6f2ee3630802cd46506d0c (patch)
tree1d4c6932087465ef641cae3610bf8cb693b3cd1c
parente34b829bbb284972dd391ae00b22274e47d55f16 (diff)
downloadvis-4673519c93a40fe0ed6f2ee3630802cd46506d0c.tar.gz
vis-4673519c93a40fe0ed6f2ee3630802cd46506d0c.tar.xz
sam: keep selections after :> command
Fix #700
-rw-r--r--sam.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sam.c b/sam.c
index b6a497e..60d11d0 100644
--- 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)