mirror of
https://github.com/vim/vim.git
synced 2025-10-06 05:44:14 -04:00
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)
This commit is contained in:
@@ -549,7 +549,7 @@ def Test_modifier_silent_unsilent()
|
||||
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 _'])
|
||||
|
Reference in New Issue
Block a user