aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoranekos2008-11-09 10:40:53 +0000
committeranekos2008-11-09 10:40:53 +0000
commit94dda55f32c4c05b2d0c18cacf76310b46dca06b (patch)
treed12d499d7b3ff39982edbb7b04bee19b4db6411b
parent28a7da6b0da9513beacc1a5e3ae570bd5283cbdf (diff)
downloadvimperator-plugins-94dda55f32c4c05b2d0c18cacf76310b46dca06b.tar.bz2
meow meow fixes.
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@23054 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r--yetmappings.js12
1 files changed, 3 insertions, 9 deletions
diff --git a/yetmappings.js b/yetmappings.js
index 41722bc..71ad7dd 100644
--- a/yetmappings.js
+++ b/yetmappings.js
@@ -25,20 +25,14 @@
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'],
'display the keys that are not mapped yet.',
function (arg) {
- liberator.echo(getYetMappings(arg.string || '').join(' '), commandline.FORCE_MULTILINE);
+ liberator.echo(getYetMappings(arg.string || '').join(' '));
},
{
argCount: '*'