From 6deb6e077fa85a83d5bd4f54f1f416508c77c126 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Sun, 5 Feb 2017 22:21:44 +0100 Subject: vis: add file argument to vis_pipe --- vis-cmds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vis-cmds.c') 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) -- cgit v1.2.3