diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-29 21:34:14 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-03-31 08:07:47 -0300 |
commit | 0d61b1c470466118c601a107d7a17b9edd107c53 (patch) | |
tree | 297f39c2206f7cb9c87b07821db08e3f8aea1aad /src/diff.c | |
parent | 607e1c7ee42cb9bfd66cb84d4fb54060f3b4135b (diff) | |
download | rneovim-0d61b1c470466118c601a107d7a17b9edd107c53.tar.gz rneovim-0d61b1c470466118c601a107d7a17b9edd107c53.tar.bz2 rneovim-0d61b1c470466118c601a107d7a17b9edd107c53.zip |
Refactor SHELL_* defines into enum typedef
The SHELL_* defines are the bitflags that can be passed to `mch_call_shell`.
The enum is defined in 'os/shell.h', where all shell-related functions will
eventually be defined.
Diffstat (limited to 'src/diff.c')
-rw-r--r-- | src/diff.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/diff.c b/src/diff.c index af40b1295a..67d941c35a 100644 --- a/src/diff.c +++ b/src/diff.c @@ -25,6 +25,7 @@ #include "undo.h" #include "window.h" #include "os/os.h" +#include "os/shell.h" static int diff_busy = FALSE; // ex_diffgetput() is busy @@ -840,7 +841,11 @@ static void diff_file(char_u *tmp_orig, char_u *tmp_new, char_u *tmp_diff) tmp_orig, tmp_new); append_redir(cmd, (int)len, p_srr, tmp_diff); block_autocmds(); /* Avoid ShellCmdPost stuff */ - (void)call_shell(cmd, SHELL_FILTER | SHELL_SILENT | SHELL_DOOUT, NULL); + (void)call_shell( + cmd, + kShellOptFilter | kShellOptSilent | kShellOptDoOut, + NULL + ); unblock_autocmds(); vim_free(cmd); } @@ -943,7 +948,7 @@ void ex_diffpatch(exarg_T *eap) #endif // ifdef UNIX // Avoid ShellCmdPost stuff block_autocmds(); - (void)call_shell(buf, SHELL_FILTER | SHELL_COOKED, NULL); + (void)call_shell(buf, kShellOptFilter | kShellOptCooked, NULL); unblock_autocmds(); } |