forked from aniani/vim
patch 8.2.3733: Vim9: using "legacy" before range does not work
Problem: Vim9: using "legacy" before range does not work. Solution: Skip over range before parsing command. (closes #9270)
This commit is contained in:
@@ -1019,6 +1019,11 @@ def Test_range_after_command_modifier()
|
||||
CheckScriptSuccess(['vim9script', 'silent keepjump :1d _'])
|
||||
assert_equal('', getline(1))
|
||||
bwipe!
|
||||
|
||||
var lines =<< trim END
|
||||
legacy /pat/
|
||||
END
|
||||
CheckDefExecAndScriptFailure(lines, 'E486: Pattern not found: pat')
|
||||
enddef
|
||||
|
||||
def Test_silent_pattern()
|
||||
|
||||
Reference in New Issue
Block a user