summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLukas Fleischer <calcurse@cryptocrack.de>2012-05-16 16:00:00 +0200
committerLukas Fleischer <calcurse@cryptocrack.de>2012-05-16 19:31:48 +0200
commit49d6e19a6bda3c51ae341e6c42c44535056ed7b6 (patch)
tree67e94f191436de7e6a14678542b9469c5f106711 /src
parentce13b70c5a0fae3788dc4d551fff24dd5c001649 (diff)
downloadcalcurse-49d6e19a6bda3c51ae341e6c42c44535056ed7b6.zip
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 <calcurse@cryptocrack.de>
Diffstat (limited to 'src')
-rw-r--r--src/wins.c2
1 files changed, 1 insertions, 1 deletions
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 ();
}