mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-23 20:35:45 +01:00
Fix some bugs.
This commit is contained in:
@@ -127,7 +127,7 @@ const Browser = Module("browser", {
|
|||||||
"Go to the root of the website",
|
"Go to the root of the website",
|
||||||
function () { Browser.climbUrlPath(-1); });
|
function () { Browser.climbUrlPath(-1); });
|
||||||
|
|
||||||
mappings.add([modes.NORMAL], ["<C-l>"],
|
mappings.add(modes.all, ["<C-l>"],
|
||||||
"Redraw the screen",
|
"Redraw the screen",
|
||||||
function () { ex.redraw(); });
|
function () { ex.redraw(); });
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -659,6 +659,9 @@ const CommandLine = Module("commandline", {
|
|||||||
* the MOW.
|
* the MOW.
|
||||||
*/
|
*/
|
||||||
echo: function echo(str, highlightGroup, flags) {
|
echo: function echo(str, highlightGroup, flags) {
|
||||||
|
if (String(str) == "undefined")
|
||||||
|
util.dumpStack();
|
||||||
|
|
||||||
// dactyl.echo uses different order of flags as it omits the highlight group, change commandline.echo argument order? --mst
|
// dactyl.echo uses different order of flags as it omits the highlight group, change commandline.echo argument order? --mst
|
||||||
if (this._silent)
|
if (this._silent)
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -1122,7 +1122,7 @@ const Events = Module("events", {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
let ret = execute(map, null, this.count);
|
let ret = execute(map, null, this.count);
|
||||||
return map.route && ret;
|
return !(map.route && ret);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (mappings.getCandidates(this.main, candidateCommand).length > 0 && !event.skipmap) {
|
else if (mappings.getCandidates(this.main, candidateCommand).length > 0 && !event.skipmap) {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ memoize(this, "Commands", function () {
|
|||||||
const FailedAssertion = Class("FailedAssertion", Error, {
|
const FailedAssertion = Class("FailedAssertion", Error, {
|
||||||
init: function (message) {
|
init: function (message) {
|
||||||
update(this, Error(message))
|
update(this, Error(message))
|
||||||
|
this.message = message;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user