From 47481df6979b8e5b9d306c94823609dd69326b91 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 25 Oct 2007 12:48:17 +0000 Subject: [PATCH] add TODO and simplify replace 'pattern' for uppercasing modifier chars --- content/mappings.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/content/mappings.js b/content/mappings.js index 4d839941..0d1886eb 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -217,7 +217,7 @@ vimperator.Mappings = function() //{{{ for (var i = 0; i < map.names.length; i++) { // only store keysyms with uppercase modifier strings - map.names[i] = map.names[i].replace(/([casm]-)/g, function($0, $1) { return $1.toUpperCase(); }) + map.names[i] = map.names[i].replace(/[casm]-/g, function($0) { return $0.toUpperCase(); }); for (var j = 0; j < map.modes.length; j++) removeMap(map.modes[j], map.names[i]); } @@ -277,7 +277,6 @@ vimperator.Mappings = function() //{{{ return matches; } - // TODO: implement filtering this.list = function(mode, filter) { var maps = user[mode];