1
0
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:
Doug Kearns
2008-11-04 16:00:05 +00:00
parent 2949902f86
commit f371419666
2 changed files with 2 additions and 1 deletions

View File

@@ -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();
}
},

View File

@@ -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);
}