diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-22 15:09:36 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-22 15:09:36 +0000 |
commit | 5600a709f453045c80f92087acc0f855b4af377a (patch) | |
tree | 7a5d7a0ea30f2167bf7a1fd68a93d6c9570c3e6c /src/testdir/test_balloon.vim | |
parent | 9530b580a7b71960dbbdb2b12a3aafeb540bd135 (diff) |
patch 8.2.4180: 'balloonexpr' is evaluated in the current script contextv8.2.4180
Problem: 'balloonexpr' is evaluated in the current script context.
Solution: Use the script context where the option was set.
Diffstat (limited to 'src/testdir/test_balloon.vim')
-rw-r--r-- | src/testdir/test_balloon.vim | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_balloon.vim b/src/testdir/test_balloon.vim index 319e54601e..ed0c6c1936 100644 --- a/src/testdir/test_balloon.vim +++ b/src/testdir/test_balloon.vim @@ -10,7 +10,8 @@ CheckScreendump let s:common_script =<< trim [CODE] call setline(1, ["one one one", "two tXo two", "three three three"]) - set balloonevalterm balloonexpr=MyBalloonExpr() balloondelay=100 + set balloonevalterm balloonexpr=MyBalloonExpr()..s:trailing balloondelay=100 + let s:trailing = '<' " check that script context is set func MyBalloonExpr() return "line " .. v:beval_lnum .. " column " .. v:beval_col .. ":\n" .. v:beval_text endfun |