aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+orbitalquark@users.noreply.github.com>2021-03-01 10:55:01 -0500
committermitchell <70453897+orbitalquark@users.noreply.github.com>2021-03-01 10:55:01 -0500
commit46c257bc5ffc80d0b0ebee522af11a118a60d323 (patch)
tree81121f54ad782d94bad34231d1ef88d666b94ef2 /init.lua
parentce352e93b2e4ddfa39907b8f50f98cfd6e54e593 (diff)
downloadtextadept-46c257bc5ffc80d0b0ebee522af11a118a60d323.tar.gz
textadept-46c257bc5ffc80d0b0ebee522af11a118a60d323.zip
Fixed new theme's overriding of default theme's colors.
This only happens on startup when recording initial buffer settings with the `lexer` module mimic.
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 92fc6e12..d198ae2e 100644
--- a/init.lua
+++ b/init.lua
@@ -22,6 +22,7 @@ local SETLEXERLANGUAGE = _SCINTILLA.properties.lexer_language[2]
-- Documentation is in core/.view.luadoc.
local function set_theme(view, name, env)
+ for k in pairs(lexer.colors) do lexer.colors[k] = nil end -- clear mimic
if not assert_type(name, 'string', 2):find('[/\\]') then
name = package.searchpath(name, string.format(
'%s/themes/?.lua;%s/themes/?.lua', _USERHOME, _HOME))