From 49d6e19a6bda3c51ae341e6c42c44535056ed7b6 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Wed, 16 May 2012 16:00:00 +0200 Subject: src/wins.c: Run editor and pager in a shell This allows for specifying an editor or a pager with additional command line parameters, such as "vim -e". Instead of interpreting "vim -e" as an executable file, we leave it to the shell to tokenize and parse the editor command now. Signed-off-by: Lukas Fleischer --- src/wins.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wins.c b/src/wins.c index cdb6f5b..5b2568f 100644 --- a/src/wins.c +++ b/src/wins.c @@ -626,7 +626,7 @@ wins_launch_external (const char *file, const char *cmd) int pid; wins_prepare_external (); - if ((pid = fork_exec (NULL, NULL, cmd, arg))) + if ((pid = shell_exec (NULL, NULL, *arg, arg))) child_wait (NULL, NULL, pid); wins_unprepare_external (); } -- cgit v1.2.3-70-g09d2