mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-20 20:27:58 +01:00
Fix quoting issues in :au.
This commit is contained in:
@@ -148,7 +148,7 @@ var AutoCommands = Module("autocommands", {
|
||||
let validEvents = Object.keys(config.autocommands);
|
||||
validEvents.push("*");
|
||||
|
||||
events = event.split(",");
|
||||
events = Option.parse.stringlist(event);
|
||||
dactyl.assert(events.every(function (event) validEvents.indexOf(event) >= 0),
|
||||
"E216: No such group or event: " + event);
|
||||
}
|
||||
@@ -180,6 +180,7 @@ var AutoCommands = Module("autocommands", {
|
||||
return args["-javascript"] ? completion.javascript(context) : completion.ex(context);
|
||||
},
|
||||
hereDoc: true,
|
||||
keepQuotes: true,
|
||||
literal: 2,
|
||||
options: [
|
||||
{
|
||||
|
||||
@@ -221,7 +221,7 @@ var Buffer = Module("buffer", {
|
||||
|
||||
onDOMContentLoaded: function onDOMContentLoaded(event) {
|
||||
let doc = event.originalTarget;
|
||||
if (doc instanceof HTMLDocument && !doc.defaultView.frameElement)
|
||||
if (doc instanceof HTMLDocument)
|
||||
this._triggerLoadAutocmd("DOMLoad", doc);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user