mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 20:02:25 +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)
|
||||
{
|
||||
for (let i in util.rangeInterruptable(0, count || 1, 100))
|
||||
for (let i in util.rangeInterruptable(0, count > 1 ? count : 1, 100))
|
||||
mappings.repeat();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -70,6 +70,7 @@ Map.prototype = {
|
||||
// FIXME: Kludge.
|
||||
if (this.names[0] != ".")
|
||||
mappings.repeat = function () self.action.apply(self, args);
|
||||
|
||||
return this.action.apply(this, args);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user