We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 384bc66 commit abc07dcCopy full SHA for abc07dc
plugins_/color_scheme_dev.py
@@ -141,7 +141,14 @@ def run(self):
141
view = self.window.active_view()
142
if not view:
143
return
144
- scheme_path = ResourcePath(view.settings().get('color_scheme'))
+
145
+ # Be lazy here and don't consider invalid values
146
+ scheme_setting = view.settings().get('color_scheme')
147
+ if '/' not in scheme_setting:
148
+ scheme_path = ResourcePath.glob_resources(scheme_setting)[0]
149
+ else:
150
+ scheme_path = ResourcePath(scheme_setting)
151
152
self.window.run_command(
153
'edit_settings',
154
{
0 commit comments