aboutsummaryrefslogtreecommitdiff
path: root/vis-cmds.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-05-18 12:31:33 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-05-18 15:07:02 +0200
commit0d1152340ccb3c6a0a8b4160fda34cc6687b236e (patch)
tree054c0110c76227e8aae96e1fec3a5a2a37aa9e99 /vis-cmds.c
parentffe11d4cd4a4c81395b3272706cf696b93710c61 (diff)
downloadvis-0d1152340ccb3c6a0a8b4160fda34cc6687b236e.tar.gz
vis-0d1152340ccb3c6a0a8b4160fda34cc6687b236e.tar.xz
vis: add an interactive mode to vis_pipe{,_collect}(...)
Previously the interactive mode was implicitly enabled by passing an invalid range. However for some use cases (e.g. completion) we need to be able to pipe a given text range to an external process without also redirecting stderr (which is used to draw the slmenu interface on top of vis).
Diffstat (limited to 'vis-cmds.c')
-rw-r--r--vis-cmds.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis-cmds.c b/vis-cmds.c
index 92ba417..ea20e9a 100644
--- a/vis-cmds.c
+++ b/vis-cmds.c
@@ -331,7 +331,7 @@ static const char *file_open_dialog(Vis *vis, const char *pattern) {
return NULL;
Filerange empty = text_range_empty();
- int status = vis_pipe(vis, &empty, (const char*[]){ buffer_content0(&bufcmd), NULL },
+ int status = vis_pipe(vis, &empty, true, (const char*[]){ buffer_content0(&bufcmd), NULL },
&bufout, read_buffer, &buferr, read_buffer);
if (status == 0)