aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-02-05 22:21:44 +0100
committerMarc André Tanner <mat@brain-dump.org>2017-02-05 22:21:44 +0100
commit6deb6e077fa85a83d5bd4f54f1f416508c77c126 (patch)
treeb1d4b91dcae6ba9bbc82888d35b401d95403f34b /sam.c
parentbf9fc971602cff5907528da14cb6428a971b598f (diff)
downloadvis-6deb6e077fa85a83d5bd4f54f1f416508c77c126.tar.gz
vis-6deb6e077fa85a83d5bd4f54f1f416508c77c126.tar.xz
vis: add file argument to vis_pipe
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sam.c b/sam.c
index 21e56b2..7a762f3 100644
--- a/sam.c
+++ b/sam.c
@@ -1580,7 +1580,7 @@ static bool cmd_filter(Vis *vis, Win *win, Command *cmd, const char *argv[], Cur
buffer_init(&bufout);
buffer_init(&buferr);
- int status = vis_pipe(vis, range, &argv[1], &bufout, read_buffer, &buferr, read_buffer);
+ int status = vis_pipe(vis, win->file, range, &argv[1], &bufout, read_buffer, &buferr, read_buffer);
if (vis->cancel_filter) {
vis_info_show(vis, "Command cancelled");
@@ -1618,7 +1618,7 @@ static bool cmd_pipeout(Vis *vis, Win *win, Command *cmd, const char *argv[], Cu
Buffer buferr;
buffer_init(&buferr);
- int status = vis_pipe(vis, range, (const char*[]){ argv[1], NULL }, NULL, NULL, &buferr, read_buffer);
+ int status = vis_pipe(vis, win->file, range, (const char*[]){ argv[1], NULL }, NULL, NULL, &buferr, read_buffer);
if (status == 0 && cur)
view_cursors_to(cur, range->start);