aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.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 /vis-cmds.c
parentbf9fc971602cff5907528da14cb6428a971b598f (diff)
downloadvis-6deb6e077fa85a83d5bd4f54f1f416508c77c126.tar.gz
vis-6deb6e077fa85a83d5bd4f54f1f416508c77c126.tar.xz
vis: add file argument to vis_pipe
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index fc823c8..5f410fe 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -330,7 +330,8 @@ static const char *file_open_dialog(Vis *vis, const char *pattern) {
return NULL;
Filerange empty = text_range_new(0,0);
- int status = vis_pipe(vis, &empty, (const char*[]){ buffer_content0(&bufcmd), NULL },
+ int status = vis_pipe(vis, vis->win->file, &empty,
+ (const char*[]){ buffer_content0(&bufcmd), NULL },
&bufout, read_buffer, &buferr, read_buffer);
if (status == 0)