diff options
author | anekos | 2008-11-09 10:40:53 +0000 |
---|---|---|
committer | anekos | 2008-11-09 10:40:53 +0000 |
commit | 5a9596fb9bea00b07ebe9dc90d897e0262e1ac0c (patch) | |
tree | 290685d308a344c32d863a3c53feafa763c760da /yetmappings.js | |
parent | 8776f510ad941f88827189bdde7c00c300aef0dd (diff) | |
download | vimperator-plugins-5a9596fb9bea00b07ebe9dc90d897e0262e1ac0c.tar.bz2 |
meow meow fixes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/branches/1.2@23054 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'yetmappings.js')
-rw-r--r-- | yetmappings.js | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/yetmappings.js b/yetmappings.js index 59f1e6e..71ad7dd 100644 --- a/yetmappings.js +++ b/yetmappings.js @@ -25,14 +25,8 @@ function exists (modes, key) (mappings.getCandidates(modes, key).length || mappings.get(modes, key)); - function getYetMappings (pre) { - let result = []; - keys.forEach(function (key) { - if (!exists([modes.NORMAL], pre + key)) - result.push(key); - }); - return result; - } + function getYetMappings (pre) + keys.filter(function (key) (!exists([modes.NORMAL], pre + key))); commands.addUserCommand( ['yetmap[pings]', 'ymap'], |