0
0
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:
Bram Moolenaar
2020-08-23 21:06:02 +02:00
parent 2e80095501
commit c2af0afff5
3 changed files with 138 additions and 98 deletions

View File

@@ -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'