mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user