From 4892a927f8abb3b58e1e4503e4ac97cc1ac5745b Mon Sep 17 00:00:00 2001 From: Conrad Irwin Date: Sun, 7 Jun 2009 03:02:11 +0100 Subject: [PATCH] Fix #232 (pass count through :mapped commands) --- common/content/mappings.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/content/mappings.js b/common/content/mappings.js index 07890c67..4b0d53e6 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -82,7 +82,7 @@ Map.prototype = { * @param {string} name The name to query. * @returns {boolean} */ - hasName: function (name) this.names.indexOf(name) >= 0 || this.names.indexOf(name.replace(//g, "$1")) >= 0, + hasName: function (name) this.names.indexOf(name) >= 0, /** * Execute the action for this mapping. @@ -211,7 +211,7 @@ function Mappings() //{{{ { mappings.addUserMap([m], [lhs], "User defined mapping", - function (count) { events.feedkeys((count > 1 ? count : "") + this.rhs, this.noremap, this.silent); }, + function (count) { events.feedkeys((count > -1 ? count : "") + this.rhs, this.noremap, this.silent); }, { flags: Mappings.flags.COUNT, rhs: events.canonicalKeys(rhs),