mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-12 23:45:47 +01:00
Add liberator.assert.
This commit is contained in:
@@ -640,8 +640,9 @@ liberator.registerObserver("load_commands", function () {
|
||||
|
||||
if (scheme == "default")
|
||||
highlight.clear();
|
||||
else if (!io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]))
|
||||
return void liberator.echoerr("E185: Cannot find color scheme " + scheme);
|
||||
else
|
||||
liberator.assert(!io.sourceFromRuntimePath(["colors/" + scheme + ".vimp"]),
|
||||
"E185: Cannot find color scheme " + scheme);
|
||||
autocommands.trigger("ColorScheme", { name: scheme });
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user