diff options
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -2150,8 +2150,8 @@ static char *get_completion_prefix(Vis *vis, Filerange (*text_object)(Text *, si } static void insert_dialog_selection(Vis *vis, Filerange *range, const char *argv[]) { - char *out = NULL, *err = NULL; - if (vis_pipe_collect(vis, range, argv, &out, &err) == 0) { + char *out = NULL; + if (vis_pipe_collect(vis, range, argv, &out, NULL) == 0) { View *view = vis_view(vis); size_t len = out ? strlen(out) : 0; for (Cursor *c = view_cursors(view); c; c = view_cursors_next(c)) { @@ -2164,7 +2164,6 @@ static void insert_dialog_selection(Vis *vis, Filerange *range, const char *argv } vis_draw(vis); free(out); - free(err); } static const char *complete_word(Vis *vis, const char *keys, const Arg *arg) { |
