From 79c785176f6958b4a80d25db829961b5114c5c2a Mon Sep 17 00:00:00 2001 From: Mathieu PATUREL Date: Sat, 4 Aug 2018 10:59:39 +1000 Subject: [PATCH] :bug: check if color scheme is valid before loading --- functions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.py b/functions.py index d576c43..d0d7221 100644 --- a/functions.py +++ b/functions.py @@ -127,7 +127,7 @@ def get_style(color_scheme): if os.path.exists(USER_STYLE_FILE): with open(USER_STYLE_FILE) as fp: css += '\n' + fp.read() + '\n' - if color_scheme: + if color_scheme and color_scheme.endswith('.tmTheme'): css += pygments_from_theme(get_resource(color_scheme)) return ''.join([line.strip() + ' ' for line in css.splitlines()])