diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-29 21:45:34 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-29 21:45:34 +0000 |
commit | 62aec93bfdb9e1b40d03a6d2e8e9511f8b1bdb2d (patch) | |
tree | 8f2962626c458f5ac5fa1f2ec46e79248683c81d /src/testdir/test_normal.vim | |
parent | 135e15251efd96c960e51e8ab31333c2d6887983 (diff) |
patch 8.2.4257: Vim9: finding global function without g: prefix inconsistentv8.2.4257
Problem: Vim9: finding global function without g: prefix but not finding
global variable is inconsistent.
Solution: Require using g: for a global function. Change the vim9.vim
script into a Vim9 script with exports. Fix that import in legacy
script does not work.
Diffstat (limited to 'src/testdir/test_normal.vim')
-rw-r--r-- | src/testdir/test_normal.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testdir/test_normal.vim b/src/testdir/test_normal.vim index 9fcc9fda71..2ed6a80dfa 100644 --- a/src/testdir/test_normal.vim +++ b/src/testdir/test_normal.vim @@ -3,7 +3,7 @@ source shared.vim source check.vim source view_util.vim -source vim9.vim +import './vim9.vim' as v9 func Setup_NewWindow() 10new @@ -626,7 +626,7 @@ func Test_opfunc_callback() normal! g@l call assert_equal([23, 'char'], g:OpFunc1Args) END - call CheckTransLegacySuccess(lines) + call v9.CheckTransLegacySuccess(lines) " Test for using a script-local function name func s:OpFunc3(type) @@ -693,7 +693,7 @@ func Test_opfunc_callback() assert_equal(['char'], g:LocalOpFuncArgs) bw! END - call CheckScriptSuccess(lines) + call v9.CheckScriptSuccess(lines) " setting 'opfunc' to a script local function outside of a script context " should fail |