From 46c257bc5ffc80d0b0ebee522af11a118a60d323 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+orbitalquark@users.noreply.github.com> Date: Mon, 1 Mar 2021 10:55:01 -0500 Subject: 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. --- init.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'init.lua') 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)) -- cgit v1.2.3