1
0
forked from aniani/vim

patch 8.2.1499: Vim9: error when using "$" with col()

Problem:    Vim9: error when using "$" with col().
Solution:   Reorder getting the column value. (closes #6744)
This commit is contained in:
Bram Moolenaar
2020-08-20 22:29:12 +02:00
parent 733d259a83
commit ec65d77fa2
3 changed files with 17 additions and 5 deletions

View File

@@ -1320,6 +1320,12 @@ def Test_bufnr()
assert_equal(buf, bufnr('%'))
enddef
def Test_col()
new
setline(1, 'asdf')
assert_equal(5, col([1, '$']))
enddef
def Test_getreg_return_type()
let s1: string = getreg('"')
let s2: string = getreg('"', 1)