diff options
author | James McCoy <jamessan@jamessan.com> | 2020-11-22 22:42:18 -0500 |
---|---|---|
committer | James McCoy <jamessan@jamessan.com> | 2020-11-22 22:46:51 -0500 |
commit | 503e758a2ff5dbf9e783cd2769b8a973ef5a7610 (patch) | |
tree | 8089904452dd8f35f3b380f9c937e4cf8dcbb732 | |
parent | cd691f2b6f605bc7fc13961e275823673d9871ad (diff) | |
download | rneovim-503e758a2ff5dbf9e783cd2769b8a973ef5a7610.tar.gz rneovim-503e758a2ff5dbf9e783cd2769b8a973ef5a7610.tar.bz2 rneovim-503e758a2ff5dbf9e783cd2769b8a973ef5a7610.zip |
do_one_cmd: Remove :pyxdo/:pyxfile from "handle <bar>" switch
In 8f288698e4730f6cc91240fe899e93921aff9d71, these commands were
incorrectly added to the switch that determines whether a command needs
to parse for "|" on their own when ea.skip is set.
This means that "if 0 | pyxfile foo.py | endif" would execute foo.py
when it should do nothing. Removing them from the switch skips to the
end of `do_one_cmd()`, avoiding running any script.
-rw-r--r-- | src/nvim/ex_docmd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c index fc699e8826..d65387f83b 100644 --- a/src/nvim/ex_docmd.c +++ b/src/nvim/ex_docmd.c @@ -1873,8 +1873,6 @@ static char_u * do_one_cmd(char_u **cmdlinep, case CMD_python3: case CMD_pythonx: case CMD_pyx: - case CMD_pyxdo: - case CMD_pyxfile: case CMD_return: case CMD_rightbelow: case CMD_ruby: |