mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-04 23:35:51 +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",
|
||||
function () { Browser.climbUrlPath(-1); });
|
||||
|
||||
mappings.add([modes.NORMAL], ["<C-l>"],
|
||||
mappings.add(modes.all, ["<C-l>"],
|
||||
"Redraw the screen",
|
||||
function () { ex.redraw(); });
|
||||
},
|
||||
|
||||
@@ -659,6 +659,9 @@ const CommandLine = Module("commandline", {
|
||||
* the MOW.
|
||||
*/
|
||||
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
|
||||
if (this._silent)
|
||||
return;
|
||||
|
||||
@@ -1122,7 +1122,7 @@ const Events = Module("events", {
|
||||
return true;
|
||||
|
||||
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) {
|
||||
|
||||
@@ -31,6 +31,7 @@ memoize(this, "Commands", function () {
|
||||
const FailedAssertion = Class("FailedAssertion", Error, {
|
||||
init: function (message) {
|
||||
update(this, Error(message))
|
||||
this.message = message;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user