diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-10-03 10:34:55 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-03 10:34:55 +0800 |
commit | 184d5e75434f52170df930dcb6928014d03a7081 (patch) | |
tree | c69d9b3feef4bdb49cdc2e0a567893b794f67ec0 /src/nvim/ex_cmds.c | |
parent | aeea63081c8095f4a40a2c0ef6f4038c065d4714 (diff) | |
download | rneovim-184d5e75434f52170df930dcb6928014d03a7081.tar.gz rneovim-184d5e75434f52170df930dcb6928014d03a7081.tar.bz2 rneovim-184d5e75434f52170df930dcb6928014d03a7081.zip |
refactor: fix incorrect use of enum (#30631)
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r-- | src/nvim/ex_cmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c index 1b6861f750..4319995d87 100644 --- a/src/nvim/ex_cmds.c +++ b/src/nvim/ex_cmds.c @@ -1160,7 +1160,7 @@ static void do_filter(linenr_T line1, linenr_T line2, exarg_T *eap, char *cmd, b linenr_T read_linecount = curbuf->b_ml.ml_line_count; // Pass on the kShellOptDoOut flag when the output is being redirected. - call_shell(cmd_buf, (ShellOpts)(kShellOptFilter | shell_flags), NULL); + call_shell(cmd_buf, kShellOptFilter | shell_flags, NULL); xfree(cmd_buf); did_check_timestamps = false; @@ -1305,7 +1305,7 @@ void do_shell(char *cmd, int flags) // This ui_cursor_goto is required for when the '\n' resulted in a "delete line // 1" command to the terminal. ui_cursor_goto(msg_row, msg_col); - call_shell(cmd, (ShellOpts)flags, NULL); + call_shell(cmd, flags, NULL); if (msg_silent == 0) { msg_didout = true; } |