1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 20:37:58 +01:00

allow mapping of yy or dx, when y or d is a single char mapping

This commit is contained in:
Martin Stubenschrott
2008-01-09 16:23:10 +00:00
parent b72d54ba2f
commit ab60334b01

View File

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