diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2017-02-05 22:21:44 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2017-02-05 22:21:44 +0100 |
| commit | 6deb6e077fa85a83d5bd4f54f1f416508c77c126 (patch) | |
| tree | b1d4b91dcae6ba9bbc82888d35b401d95403f34b /sam.c | |
| parent | bf9fc971602cff5907528da14cb6428a971b598f (diff) | |
| download | vis-6deb6e077fa85a83d5bd4f54f1f416508c77c126.tar.gz vis-6deb6e077fa85a83d5bd4f54f1f416508c77c126.tar.xz | |
vis: add file argument to vis_pipe
Diffstat (limited to 'sam.c')
| -rw-r--r-- | sam.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
