Skip to content

Commit

Permalink
fix tmTheme
Browse files Browse the repository at this point in the history
  • Loading branch information
TerminalFi committed Feb 10, 2021
1 parent 1026030 commit 161299a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugin/color_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ def _add_colors_to_scheme(self, scheme_content: dict) -> dict:

def _build_scheme_path(scheme: str) -> str:
_create_override_path()
return os.path.join(sublime.packages_path(), override_path, scheme)
scheme_path = os.path.join(sublime.packages_path(), override_path, scheme)
if scheme_path.endswith('.tmTheme'):
scheme_path = scheme_path.replace('.tmTheme', '.sublime-color-scheme', -1)
return scheme_path


def _create_override_path() -> None:
Expand Down

0 comments on commit 161299a

Please sign in to comment.