mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +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:
@@ -9,6 +9,7 @@
|
||||
#include "misc1.h"
|
||||
#include "misc2.h"
|
||||
#include "os/os.h"
|
||||
#include "os/shell.h"
|
||||
#include "os_unix.h"
|
||||
#include "regexp.h"
|
||||
#include "tag.h"
|
||||
@@ -1212,7 +1213,7 @@ expand_backtick (
|
||||
buffer = eval_to_string(cmd + 1, &p, TRUE);
|
||||
else
|
||||
buffer = get_cmd_output(cmd, NULL,
|
||||
(flags & EW_SILENT) ? SHELL_SILENT : 0);
|
||||
(flags & EW_SILENT) ? kShellOptSilent : 0);
|
||||
vim_free(cmd);
|
||||
if (buffer == NULL)
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user