forked from aniani/vim
patch 8.2.4180: 'balloonexpr' is evaluated in the current script context
Problem: 'balloonexpr' is evaluated in the current script context. Solution: Use the script context where the option was set.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|t|w|o| |t|X|o| |t|w|o| @38
|
||||
|t|h|r|e| +0#0000001#ffd7ff255@17| +0#0000000#ffffff0@27
|
||||
|~+0#4040ff13&| @2| +0#0000001#ffd7ff255|l|i|n|e| |2| |c|o|l|u|m|n| |6|:| | +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255|t|X|o| @13| +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255|t|X|o|<| @12| +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255@17| +0#4040ff13#ffffff0@27
|
||||
|~| @48
|
||||
|~| @48
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|t|w|o| |t|X|o| |t|w|o| @38
|
||||
|t|h|r|e| +0#0000001#ffd7ff255@17| +0#0000000#ffffff0@27
|
||||
|~+0#4040ff13&| @2| +0#0000001#ffd7ff255|l|i|n|e| |2| |c|o|l|u|m|n| |6|:| | +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255|t|X|o| @13| +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255|t|X|o|<| @12| +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255@17| +0#4040ff13#ffffff0@27
|
||||
|~| @48
|
||||
|~| @48
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|t|h|r|e|e+0&#e0e0e08| |t|h>r+0&#ffffff0|e@1| |t|h|r|e@1| @32
|
||||
|~+0#4040ff13&| @2| +0#0000001#ffd7ff255@17| +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255|l|i|n|e| |3| |c|o|l|u|m|n| |5|:| | +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255|e| |t|h|r| @11| +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255|e| |t|h|r|<| @10| +0#4040ff13#ffffff0@27
|
||||
|~| @2| +0#0000001#ffd7ff255@17| +0#4040ff13#ffffff0@27
|
||||
|~| @48
|
||||
|~| @48
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user