From ab60334b01397162b31e7cc90b0c91fb825cf09d Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Wed, 9 Jan 2008 16:23:10 +0000 Subject: [PATCH] allow mapping of yy or dx, when y or d is a single char mapping --- content/events.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/events.js b/content/events.js index 6760b76a..4ce50496 100644 --- a/content/events.js +++ b/content/events.js @@ -1022,7 +1022,8 @@ vimperator.Events = function () //{{{ } } - else if (map && !skipMap) + // only follow a map if there isn't a longer possible mapping (allows you to do :map yy, when y is a mapping) + else if (map && !skipMap && vimperator.mappings.getCandidates(vimperator.mode, candidateCommand).length == 1) { vimperator.input.count = parseInt(countStr, 10); if (isNaN(vimperator.input.count))