mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 8.2.1519: Vim9: Ex command default range is not set
Problem: Vim9: Ex command default range is not set. Solution: When range is not given use default. (closes #6779)
This commit is contained in:
@@ -15,6 +15,18 @@ def Test_range_only()
|
||||
setline(1, ['blah', 'Blah'])
|
||||
:/Blah/
|
||||
assert_equal(2, getcurpos()[1])
|
||||
bwipe!
|
||||
|
||||
# without range commands use current line
|
||||
new
|
||||
setline(1, ['one', 'two', 'three'])
|
||||
:2
|
||||
print
|
||||
assert_equal('two', Screenline(&lines))
|
||||
:3
|
||||
list
|
||||
assert_equal('three$', Screenline(&lines))
|
||||
bwipe!
|
||||
enddef
|
||||
|
||||
let s:appendToMe = 'xxx'
|
||||
|
Reference in New Issue
Block a user