mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
shell: Remove kShellOptCooked from ShellOpts
This commit is contained in:
parent
bf3a94ee51
commit
8b6473bd41
@ -918,7 +918,7 @@ void ex_diffpatch(exarg_T *eap)
|
||||
#endif // ifdef UNIX
|
||||
// Avoid ShellCmdPost stuff
|
||||
block_autocmds();
|
||||
(void)call_shell(buf, kShellOptFilter | kShellOptCooked, NULL);
|
||||
(void)call_shell(buf, kShellOptFilter, NULL);
|
||||
unblock_autocmds();
|
||||
}
|
||||
|
||||
|
@ -1097,7 +1097,7 @@ do_filter (
|
||||
*/
|
||||
if (call_shell(
|
||||
cmd_buf,
|
||||
kShellOptFilter | kShellOptCooked | shell_flags,
|
||||
kShellOptFilter | shell_flags,
|
||||
NULL
|
||||
)) {
|
||||
redraw_later_clear();
|
||||
@ -1253,7 +1253,7 @@ do_shell (
|
||||
if (!swapping_screen())
|
||||
windgoto(msg_row, msg_col);
|
||||
cursor_on();
|
||||
(void)call_shell(cmd, kShellOptCooked | flags, NULL);
|
||||
(void)call_shell(cmd, flags, NULL);
|
||||
did_check_timestamps = FALSE;
|
||||
need_check_timestamps = TRUE;
|
||||
|
||||
|
@ -5,14 +5,13 @@
|
||||
|
||||
// Flags for mch_call_shell() second argument
|
||||
typedef enum {
|
||||
kShellOptFilter = 1, ///< filtering text
|
||||
kShellOptExpand = 2, ///< expanding wildcards
|
||||
kShellOptCooked = 4, ///< set term to cooked mode
|
||||
kShellOptDoOut = 8, ///< redirecting output
|
||||
kShellOptSilent = 16, ///< don't print error returned by command
|
||||
kShellOptRead = 32, ///< read lines and insert into buffer
|
||||
kShellOptWrite = 64, ///< write lines from buffer
|
||||
kShellOptHideMess = 128, ///< previously a global variable from os_unix.c
|
||||
kShellOptFilter = 1, ///< filtering text
|
||||
kShellOptExpand = 2, ///< expanding wildcards
|
||||
kShellOptDoOut = 4, ///< redirecting output
|
||||
kShellOptSilent = 8, ///< don't print error returned by command
|
||||
kShellOptRead = 16, ///< read lines and insert into buffer
|
||||
kShellOptWrite = 32, ///< write lines from buffer
|
||||
kShellOptHideMess = 64, ///< previously a global variable from os_unix.c
|
||||
} ShellOpts;
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
|
Loading…
Reference in New Issue
Block a user