diff options
author | Bram Moolenaar <Bram@vim.org> | 2021-11-28 20:24:17 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-28 20:24:17 +0000 |
commit | 06bffe836c98a65d270579f08004503ffce9931c (patch) | |
tree | a3a4f948c6d97523bfa7128192af715f6d2c805c /src/ex_docmd.c | |
parent | 3ccb5795168793e1b119a028da4035f77cef9f69 (diff) | |
download | vim-git-06bffe836c98a65d270579f08004503ffce9931c.tar.gz |
patch 8.2.3690: Vim9: "filter #pat# cmd" does not workv8.2.3690
Problem: Vim9: "filter #pat# cmd" does not work.
Solution: Do not see #pat# as a comment.
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index d74ef9026..6d2923ccb 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2910,7 +2910,14 @@ parse_command_modifiers( int c = 0; if (!checkforcmd_noparen(&p, "filter", 4) - || *p == NUL || ends_excmd(*p)) + || *p == NUL + || (ends_excmd(*p) +#ifdef FEAT_EVAL + // in ":filter #pat# cmd" # does not + // start a comment + && (!in_vim9script() || VIM_ISWHITE(p[1])) +#endif + )) break; if (*p == '!') { |