aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/highlight_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2022-11-27 10:33:54 +0100
committerbfredl <bjorn.linse@gmail.com>2022-11-27 11:51:10 +0100
commit942f26279d373fcdebcb41363e526a2871b09a71 (patch)
tree97660b67740882f34d3568531475b9b5a2098182 /test/functional/ui/highlight_spec.lua
parent3098064f332ffbc59c342545402e2d2da798a458 (diff)
downloadrneovim-942f26279d373fcdebcb41363e526a2871b09a71.tar.gz
rneovim-942f26279d373fcdebcb41363e526a2871b09a71.tar.bz2
rneovim-942f26279d373fcdebcb41363e526a2871b09a71.zip
fix(tests): only get the color map once, even for multiple test files
Problem: test/functional/ui/screen.lua would be reloaded for each *_spec.lua file, which causes an extra nvim session to be started to get the color map each time. solution: Mark screen.lua as a preloaded file, but defer the loading of the color map to the first time Screen object is initialised.
Diffstat (limited to 'test/functional/ui/highlight_spec.lua')
-rw-r--r--test/functional/ui/highlight_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/ui/highlight_spec.lua b/test/functional/ui/highlight_spec.lua
index bcb437a55d..8dd1091353 100644
--- a/test/functional/ui/highlight_spec.lua
+++ b/test/functional/ui/highlight_spec.lua
@@ -1403,7 +1403,7 @@ describe('ColorColumn highlight', function()
before_each(function()
clear()
screen = Screen.new(40, 15)
- Screen:set_default_attr_ids({
+ screen:set_default_attr_ids({
[1] = {background = Screen.colors.LightRed}, -- ColorColumn
[2] = {background = Screen.colors.Grey90}, -- CursorLine
[3] = {foreground = Screen.colors.Brown}, -- LineNr