mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-10-17 01:42:31 +02:00
Fix #232 (pass count through :mapped commands)
This commit is contained in:
1 parent
834acb2776
commit
4892a927f8
1 file changed
+2
-2
@@ -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(/<S-(.)>/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),
|
||||
|
||||
Reference in new issue
Block a user