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
|
#endif // ifdef UNIX
|
||||||
// Avoid ShellCmdPost stuff
|
// Avoid ShellCmdPost stuff
|
||||||
block_autocmds();
|
block_autocmds();
|
||||||
(void)call_shell(buf, kShellOptFilter | kShellOptCooked, NULL);
|
(void)call_shell(buf, kShellOptFilter, NULL);
|
||||||
unblock_autocmds();
|
unblock_autocmds();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1097,7 +1097,7 @@ do_filter (
|
|||||||
*/
|
*/
|
||||||
if (call_shell(
|
if (call_shell(
|
||||||
cmd_buf,
|
cmd_buf,
|
||||||
kShellOptFilter | kShellOptCooked | shell_flags,
|
kShellOptFilter | shell_flags,
|
||||||
NULL
|
NULL
|
||||||
)) {
|
)) {
|
||||||
redraw_later_clear();
|
redraw_later_clear();
|
||||||
@ -1253,7 +1253,7 @@ do_shell (
|
|||||||
if (!swapping_screen())
|
if (!swapping_screen())
|
||||||
windgoto(msg_row, msg_col);
|
windgoto(msg_row, msg_col);
|
||||||
cursor_on();
|
cursor_on();
|
||||||
(void)call_shell(cmd, kShellOptCooked | flags, NULL);
|
(void)call_shell(cmd, flags, NULL);
|
||||||
did_check_timestamps = FALSE;
|
did_check_timestamps = FALSE;
|
||||||
need_check_timestamps = TRUE;
|
need_check_timestamps = TRUE;
|
||||||
|
|
||||||
|
@ -5,14 +5,13 @@
|
|||||||
|
|
||||||
// Flags for mch_call_shell() second argument
|
// Flags for mch_call_shell() second argument
|
||||||
typedef enum {
|
typedef enum {
|
||||||
kShellOptFilter = 1, ///< filtering text
|
kShellOptFilter = 1, ///< filtering text
|
||||||
kShellOptExpand = 2, ///< expanding wildcards
|
kShellOptExpand = 2, ///< expanding wildcards
|
||||||
kShellOptCooked = 4, ///< set term to cooked mode
|
kShellOptDoOut = 4, ///< redirecting output
|
||||||
kShellOptDoOut = 8, ///< redirecting output
|
kShellOptSilent = 8, ///< don't print error returned by command
|
||||||
kShellOptSilent = 16, ///< don't print error returned by command
|
kShellOptRead = 16, ///< read lines and insert into buffer
|
||||||
kShellOptRead = 32, ///< read lines and insert into buffer
|
kShellOptWrite = 32, ///< write lines from buffer
|
||||||
kShellOptWrite = 64, ///< write lines from buffer
|
kShellOptHideMess = 64, ///< previously a global variable from os_unix.c
|
||||||
kShellOptHideMess = 128, ///< previously a global variable from os_unix.c
|
|
||||||
} ShellOpts;
|
} ShellOpts;
|
||||||
|
|
||||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user