1
0
forked from aniani/vim

patch 8.2.1923: Vim9: "filter" command modifier doesn't work

Problem:    Vim9: "filter" command modifier doesn't work.
Solution:   Check for space on char before argument. (closes #7216,
            closes #7222)
This commit is contained in:
Bram Moolenaar
2020-10-29 20:24:34 +01:00
parent 185577e47e
commit 4f6b6ed208
3 changed files with 15 additions and 1 deletions

View File

@@ -2763,7 +2763,7 @@ parse_command_modifiers(
}
#ifdef FEAT_EVAL
// Avoid that "filter(arg)" is recognized.
if (in_vim9script() && !VIM_ISWHITE(*p))
if (in_vim9script() && !VIM_ISWHITE(p[-1]))
break;
#endif
if (skip_only)