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)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index b8ee85c..48da263 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2763,7 +2763,7 @@
}
#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)