1
0
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:
Yegappan Lakshmanan
2022-11-12 16:07:47 +00:00
committed by Bram Moolenaar
parent 0aad88f073
commit 4c8d2f02b3
7 changed files with 75 additions and 15 deletions

View File

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