Refactor wins_launch_external()

Allow for passing an arbitrary number of arguments. This also allows us
to remove wins_launch_external2() and use wins_launch_external() at all
call sites instead.

Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
This commit is contained in:
Lukas Fleischer
2014-07-16 23:53:30 +02:00
parent b37ed2fcc8
commit 71234ec0bd
6 changed files with 20 additions and 29 deletions

View File

@@ -1175,8 +1175,10 @@ void io_log_display(struct io_file *log, const char *msg,
child_wait(NULL, NULL, pid);
}
} else {
if (status_ask_bool(msg) == 1)
wins_launch_external(log->name, pager);
if (status_ask_bool(msg) == 1) {
const char *arg[] = { pager, log->name, NULL };
wins_launch_external(arg);
}
wins_erase_status_bar();
}
}