diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-05-16 16:00:00 +0200 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2012-05-16 19:31:48 +0200 |
commit | 49d6e19a6bda3c51ae341e6c42c44535056ed7b6 (patch) | |
tree | 67e94f191436de7e6a14678542b9469c5f106711 /src | |
parent | ce13b70c5a0fae3788dc4d551fff24dd5c001649 (diff) | |
download | calcurse-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 (); } |