Simplify per-terminal theme code; note ansi_colors needs restart

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Vaclav Tvrdik
2026-10-04 21:42:20 +02:00
parent c2a0c75359
commit 9656faa385
7 changed files with 31 additions and 21 deletions

View File

@@ -43,7 +43,8 @@ def plugin_loaded():
plugin host: a restored tab's color_scheme is read during startup and may
name any of them.
"""
view = sublime.active_window().active_view() if sublime.active_window() else None
window = sublime.active_window()
view = window.active_view() if window else None
build_startup_schemes(view)
level = logging.DEBUG if settings().get("debug", False) else logging.INFO