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 /sam.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 'sam.c')
| -rw-r--r-- | sam.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1150,7 +1150,7 @@ static bool cmd_filter(Vis *vis, Win *win, Command *cmd, const char *argv[], Cur Buffer buferr; buffer_init(&buferr); - int status = vis_pipe(vis, range, &argv[1], &filter, read_text, &buferr, read_buffer); + int status = vis_pipe(vis, range, false, &argv[1], &filter, read_text, &buferr, read_buffer); if (status == 0) { text_delete_range(txt, range); @@ -1198,7 +1198,7 @@ static bool cmd_pipeout(Vis *vis, Win *win, Command *cmd, const char *argv[], Cu Buffer buferr; buffer_init(&buferr); - int status = vis_pipe(vis, range, (const char*[]){ argv[1], NULL }, NULL, NULL, &buferr, read_buffer); + int status = vis_pipe(vis, range, false, (const char*[]){ argv[1], NULL }, NULL, NULL, &buferr, read_buffer); if (status == 0 && cur) view_cursors_to(cur, range->start); |
