patch 8.2.3004: Vim9: error for missing colon given while skipping
Problem: Vim9: error for missing colon given while skipping.
Solution: Do not give the error when skipping. (closes #8385)
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 25ec9c3..45f9401 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -1844,7 +1844,7 @@
// If a ':' before the range is missing, give a clearer error
// message.
- if (ar > ea.cmd)
+ if (ar > ea.cmd && !ea.skip)
{
semsg(_(e_colon_required_before_range_str), ea.cmd);
goto doend;