mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-06 06:54:12 +01:00
Fix #232 (pass count through :mapped commands)
This commit is contained in:
@@ -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