forked from aniani/vim
patch 9.0.0863: col() and charcol() only work for the current window
Problem: col() and charcol() only work for the current window. Solution: Add an optional winid argument. (Yegappan Lakshmanan, closes #11466, closes #11461)
This commit is contained in:
committed by
Bram Moolenaar
parent
0aad88f073
commit
4c8d2f02b3
@@ -53,7 +53,7 @@ def Test_expr1_ternary()
|
||||
assert_equal(function('len'), Res)
|
||||
|
||||
var RetOne: func(string): number = function('len')
|
||||
var RetTwo: func(string): number = function('charcol')
|
||||
var RetTwo: func(string): number = function('strlen')
|
||||
var RetThat: func = g:atrue ? RetOne : RetTwo
|
||||
assert_equal(function('len'), RetThat)
|
||||
|
||||
|
Reference in New Issue
Block a user