From 5e8de51bcb817dffaaaf1563f40026203c9facb2 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Tue, 16 Jun 2009 23:46:07 +1000 Subject: [PATCH] Don't add :*map commands multiple times. Multiple modes may share the same mode character. E.g. Textarea and Insert modes. --- common/content/mappings.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/content/mappings.js b/common/content/mappings.js index 4b0d53e6..59cf3df0 100644 --- a/common/content/mappings.js +++ b/common/content/mappings.js @@ -292,7 +292,7 @@ function Mappings() //{{{ addMapCommands("", [modes.NORMAL, modes.VISUAL], ""); for (let mode in modes.mainModes) - if (mode.char) + if (mode.char && !commands.get(mode.char + "map")) addMapCommands(mode.char, [m.mask for (m in modes.mainModes) if (m.char == mode.char)], [mode.disp.toLowerCase()]);