diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-07-16 23:53:30 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2014-07-16 23:53:30 +0200 |
commit | 71234ec0bd16c490239eefcf98069ceb7a7f7618 (patch) | |
tree | 96700d7cbdf97ca7f1906948be66548712b15226 /src/io.c | |
parent | b37ed2fcc8a4c64419cf066d3c940fc29b7a2d73 (diff) | |
download | calcurse-71234ec0bd16c490239eefcf98069ceb7a7f7618.zip |
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>
Diffstat (limited to 'src/io.c')
-rw-r--r-- | src/io.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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(); } } |