test: Add a test for the new guisp highlighting feature.

Screen.lua needed a little cosmetical adjustment to print out the color nicely.
This commit is contained in:
KillTheMule
2016-04-24 11:46:48 +02:00
committed by AdnoC
parent f6a82c1d4f
commit a5ac389e5c
2 changed files with 59 additions and 2 deletions

View File

@@ -577,7 +577,7 @@ function Screen:_pprint_attrs(attrs)
local items = {}
for f, v in pairs(attrs) do
local desc = tostring(v)
if f == "foreground" or f == "background" then
if f == "foreground" or f == "background" or f == "special" then
if Screen.colornames[v] ~= nil then
desc = "Screen.colors."..Screen.colornames[v]
end