aboutsummaryrefslogtreecommitdiffstats
path: root/src/help.c
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2014-07-16 23:53:30 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2014-07-16 23:53:30 +0200
commit71234ec0bd16c490239eefcf98069ceb7a7f7618 (patch)
tree96700d7cbdf97ca7f1906948be66548712b15226 /src/help.c
parentb37ed2fcc8a4c64419cf066d3c940fc29b7a2d73 (diff)
downloadcalcurse-71234ec0bd16c490239eefcf98069ceb7a7f7618.tar.gz
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/help.c')
-rw-r--r--src/help.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/help.c b/src/help.c
index b2a7e72..09f9197 100644
--- a/src/help.c
+++ b/src/help.c
@@ -189,7 +189,8 @@ int display_help(const char *topic)
}
if (io_file_exists(path)) {
- wins_launch_external(path, conf.pager);
+ const char *arg[] = { conf.pager, path, NULL };
+ wins_launch_external(arg);
return 1;
} else {
return 0;