mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 22:22:27 +01:00
fix "." mapping for repeating the last normal mode command
This commit is contained in:
@@ -201,7 +201,7 @@ function Buffer() //{{{
|
|||||||
{
|
{
|
||||||
if (mappings.repeat)
|
if (mappings.repeat)
|
||||||
{
|
{
|
||||||
for (let i in util.rangeInterruptable(0, count || 1, 100))
|
for (let i in util.rangeInterruptable(0, count > 1 ? count : 1, 100))
|
||||||
mappings.repeat();
|
mappings.repeat();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -70,6 +70,7 @@ Map.prototype = {
|
|||||||
// FIXME: Kludge.
|
// FIXME: Kludge.
|
||||||
if (this.names[0] != ".")
|
if (this.names[0] != ".")
|
||||||
mappings.repeat = function () self.action.apply(self, args);
|
mappings.repeat = function () self.action.apply(self, args);
|
||||||
|
|
||||||
return this.action.apply(this, args);
|
return this.action.apply(this, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user