From f371419666552604ef4ff4932959d78c2341bc1d Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 4 Nov 2008 16:00:05 +0000 Subject: [PATCH] fix "." mapping for repeating the last normal mode command --- content/buffer.js | 2 +- content/mappings.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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); }