From a3075cd48459697ce3e6fa434373254d286ae848 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Thu, 25 Oct 2007 07:59:52 +0000 Subject: [PATCH] allow lowercase modifier chars in the {lhs} arg of :map and related commands --- content/mappings.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/content/mappings.js b/content/mappings.js index 42df2764..4d839941 100644 --- a/content/mappings.js +++ b/content/mappings.js @@ -216,6 +216,8 @@ 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(); }) for (var j = 0; j < map.modes.length; j++) removeMap(map.modes[j], map.names[i]); }