diff options
author | 2021-03-01 10:55:01 -0500 | |
---|---|---|
committer | 2021-03-01 10:55:01 -0500 | |
commit | 46c257bc5ffc80d0b0ebee522af11a118a60d323 (patch) | |
tree | 81121f54ad782d94bad34231d1ef88d666b94ef2 /init.lua | |
parent | ce352e93b2e4ddfa39907b8f50f98cfd6e54e593 (diff) | |
download | textadept-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.lua | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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)) |