diff --git a/content/buffer.js b/content/buffer.js index dc762be0..6edc9748 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -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(); } }, diff --git a/content/mappings.js b/content/mappings.js index c73a3444..d431b0d6 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -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); }