diff options
Diffstat (limited to 'test/busted/outputHandlers/nvim.lua')
-rw-r--r-- | test/busted/outputHandlers/nvim.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/busted/outputHandlers/nvim.lua b/test/busted/outputHandlers/nvim.lua index 191387e1b9..0e9801b94b 100644 --- a/test/busted/outputHandlers/nvim.lua +++ b/test/busted/outputHandlers/nvim.lua @@ -2,8 +2,8 @@ local pretty = require 'pl.pretty' local global_helpers = require('test.helpers') -- Colors are disabled by default. #15610 -local colors = setmetatable({}, {__index = function() return function(s) return s end end}) -if os.getenv "NVIM_COLORS" then +local colors = setmetatable({}, {__index = function() return function(s) return s == nil and '' or tostring(s) end end}) +if os.getenv "TEST_COLORS" then colors = require 'term.colors' end |