diff options
| author | Kyle Evans <kevans@FreeBSD.org> | 2018-03-20 20:05:11 +0000 |
|---|---|---|
| committer | Kyle Evans <kevans@FreeBSD.org> | 2018-03-20 20:05:11 +0000 |
| commit | 4a034bad212b65b7a1ec515d5f5bc49aa7e5edff (patch) | |
| tree | 8949bf6c185537fc04c25f025f0422c6a8d47132 /stand/lua/color.lua | |
| parent | b7d779b3e5ecbc5df71f94a5f2eb2802e110bee6 (diff) | |
Notes
Diffstat (limited to 'stand/lua/color.lua')
| -rw-r--r-- | stand/lua/color.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/stand/lua/color.lua b/stand/lua/color.lua index 532482c6804d..8aa9fe25eba3 100644 --- a/stand/lua/color.lua +++ b/stand/lua/color.lua @@ -96,7 +96,9 @@ function color.highlight(str) if color.disabled then return str end - return core.KEYSTR_CSI .. "1m" .. str .. core.KEYSTR_CSI .. "0m" + -- We need to reset attributes as well as color scheme here, just in + -- case the terminal defaults don't match what we're expecting. + return core.KEYSTR_CSI .. "1m" .. str .. color.default() end return color |
