From 71234ec0bd16c490239eefcf98069ceb7a7f7618 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 16 Jul 2014 23:53:30 +0200 Subject: 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 --- src/help.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/help.c') 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; -- cgit v1.2.3-54-g00ecf