diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-05-18 12:31:33 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-05-18 15:07:02 +0200 |
| commit | 0d1152340ccb3c6a0a8b4160fda34cc6687b236e (patch) | |
| tree | 054c0110c76227e8aae96e1fec3a5a2a37aa9e99 /vis-cmds.c | |
| parent | ffe11d4cd4a4c81395b3272706cf696b93710c61 (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |
