aboutsummaryrefslogtreecommitdiffstats
path: root/yetmappings.js
diff options
context:
space:
mode:
Diffstat (limited to 'yetmappings.js')
-rw-r--r--yetmappings.js10
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'],