From 0d1152340ccb3c6a0a8b4160fda34cc6687b236e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 18 May 2016 12:31:33 +0200 Subject: 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). --- vis-cmds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-cmds.c') 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) -- cgit v1.2.3