1
0
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:
Kris Maglione
2010-12-22 22:54:57 -05:00
parent f36bd842a3
commit 8d9c2cddc0
4 changed files with 6 additions and 2 deletions

View File

@@ -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(); });
},

View File

@@ -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;

View File

@@ -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) {

View File

@@ -31,6 +31,7 @@ memoize(this, "Commands", function () {
const FailedAssertion = Class("FailedAssertion", Error, {
init: function (message) {
update(this, Error(message))
this.message = message;
}
});