mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
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.
This commit is contained in:
@@ -61,6 +61,7 @@
|
||||
#include "version.h"
|
||||
#include "window.h"
|
||||
#include "os/os.h"
|
||||
#include "os/shell.h"
|
||||
|
||||
#if defined(FEAT_FLOAT) && defined(HAVE_MATH_H)
|
||||
# include <math.h>
|
||||
@@ -14543,7 +14544,7 @@ static void f_system(typval_T *argvars, typval_T *rettv)
|
||||
}
|
||||
|
||||
res = get_cmd_output(get_tv_string(&argvars[0]), infile,
|
||||
SHELL_SILENT | SHELL_COOKED);
|
||||
kShellOptSilent | kShellOptCooked);
|
||||
|
||||
#ifdef USE_CR
|
||||
/* translate <CR> into <NL> */
|
||||
|
Reference in New Issue
Block a user