aboutsummaryrefslogtreecommitdiffstats
path: root/feedSomeKeys_2.js
diff options
context:
space:
mode:
Diffstat (limited to 'feedSomeKeys_2.js')
-rw-r--r--feedSomeKeys_2.js15
1 files changed, 12 insertions, 3 deletions
diff --git a/feedSomeKeys_2.js b/feedSomeKeys_2.js
index cfb570a..bdd2a95 100644
--- a/feedSomeKeys_2.js
+++ b/feedSomeKeys_2.js
@@ -206,7 +206,14 @@ function replaceUserMap(origKey, feedKey, useVkey, eventName){
origMap.names.map(function(n) n),
origMap.description,
origMap.action,
- { flags:origMap.flags, rhs:origMap.rhs, noremap:origMap.noremap });
+ {
+ flags:origMap.flags,
+ rhs:origMap.rhs,
+ noremap:origMap.noremap,
+ count: origMap.cout,
+ arg: origMap.arg,
+ motion: origMap.motion
+ });
origMaps.push(clone);
}
}
@@ -216,7 +223,7 @@ function replaceUserMap(origKey, feedKey, useVkey, eventName){
for (var i=0; i<count; i++){
feedKeyIntoContent(feedKey, useVkey, eventName);
}
- }, { flags:Mappings.flags.COUNT, rhs:feedKey, noremap:true });
+ }, { flags:(Mappings.flags ? Mappings.flags.COUNT : null), rhs:feedKey, noremap:true, count:true });
addUserMap(map);
if (feedMaps.some(function(fmap){
if (fmap.names[0] != origKey) return false;
@@ -238,7 +245,9 @@ function destroy(){
feedMaps = [];
}
function addUserMap(map){
- mappings.addUserMap(map.modes, map.names, map.description, map.action, { flags:map.flags,noremap:map.noremap,rhs:map.rhs });
+ mappings.addUserMap(map.modes, map.names, map.description, map.action, {
+ flags:map.flags,noremap:map.noremap,rhs:map.rhs,count:map.count,arg:map.arg,motion:map.motion
+ });
}
function parseKeys(keys){
var matches = /^\d+(?=\D)/.exec(keys);