aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))