patch 8.2.2216: Vim9: range with missing colon can be hard to spot
Problem: Vim9: range with missing colon can be hard to spot.
Solution: Include the start of the range in the error. (closes #7543)
diff --git a/src/testdir/test_vim9_cmd.vim b/src/testdir/test_vim9_cmd.vim
index 9790789..a55ba64 100644
--- a/src/testdir/test_vim9_cmd.vim
+++ b/src/testdir/test_vim9_cmd.vim
@@ -549,7 +549,7 @@
enddef
def Test_range_after_command_modifier()
- CheckScriptFailure(['vim9script', 'silent keepjump 1d _'], 'E1050:', 2)
+ CheckScriptFailure(['vim9script', 'silent keepjump 1d _'], 'E1050: Colon required before a range: 1d _', 2)
new
setline(1, 'xxx')
CheckScriptSuccess(['vim9script', 'silent keepjump :1d _'])