aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ex_cmds.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2020-11-23 09:19:11 -0500
committerGitHub <noreply@github.com>2020-11-23 09:19:11 -0500
commitb155e6b54c6087fac57ea4278a3431ced7bfc7f6 (patch)
tree2060bc9e28c805bc31fa805334e8ab5139eea4e1 /src/nvim/ex_cmds.c
parent029b5d036d7eb5a16b8e3a1d37f05f92ecf40499 (diff)
parentdd3583836b80e8eccd483d41125aa24f63d2f038 (diff)
downloadrneovim-b155e6b54c6087fac57ea4278a3431ced7bfc7f6.tar.gz
rneovim-b155e6b54c6087fac57ea4278a3431ced7bfc7f6.tar.bz2
rneovim-b155e6b54c6087fac57ea4278a3431ced7bfc7f6.zip
Merge pull request #11148 from janlazo/vim-8.0.1455
vim-patch:8.0.1455,8.1.{2115,2361}
Diffstat (limited to 'src/nvim/ex_cmds.c')
-rw-r--r--src/nvim/ex_cmds.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/ex_cmds.c b/src/nvim/ex_cmds.c
index b8a0c3184b..d2ccbe3e6d 100644
--- a/src/nvim/ex_cmds.c
+++ b/src/nvim/ex_cmds.c
@@ -1182,6 +1182,7 @@ static void do_filter(
char_u *cmd_buf;
buf_T *old_curbuf = curbuf;
int shell_flags = 0;
+ const int stmp = p_stmp;
if (*cmd == NUL) /* no filter command */
return;
@@ -1210,16 +1211,16 @@ static void do_filter(
if (do_out)
shell_flags |= kShellOptDoOut;
- if (!do_in && do_out && !p_stmp) {
+ if (!do_in && do_out && !stmp) {
// Use a pipe to fetch stdout of the command, do not use a temp file.
shell_flags |= kShellOptRead;
curwin->w_cursor.lnum = line2;
- } else if (do_in && !do_out && !p_stmp) {
+ } else if (do_in && !do_out && !stmp) {
// Use a pipe to write stdin of the command, do not use a temp file.
shell_flags |= kShellOptWrite;
curbuf->b_op_start.lnum = line1;
curbuf->b_op_end.lnum = line2;
- } else if (do_in && do_out && !p_stmp) {
+ } else if (do_in && do_out && !stmp) {
// Use a pipe to write stdin and fetch stdout of the command, do not
// use a temp file.
shell_flags |= kShellOptRead | kShellOptWrite;