aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2017-12-15 12:33:16 +0000
committerGitHub2017-12-15 12:33:16 +0000
commit1812e5928ddd104c58352c36906ae37e912ea1b0 (patch)
tree7e00994a71be37eac78ab4565f77c40f7768b25a
parent2a2eff708e3880c5d3e29abfff3f2c863e3467e5 (diff)
parentc2f2dc4c9269ca3a114fce4a4e6ff6025e6ffa35 (diff)
downloadvimium-1812e5928ddd104c58352c36906ae37e912ea1b0.tar.bz2
Merge pull request #2874 from smblott-github/map-commands-as-lower-case
Treat all mapping commands as lower case.
-rw-r--r--background_scripts/commands.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/background_scripts/commands.coffee b/background_scripts/commands.coffee
index 4d2e1606..f3ae3bd9 100644
--- a/background_scripts/commands.coffee
+++ b/background_scripts/commands.coffee
@@ -20,7 +20,7 @@ Commands =
unmapAll = false
for line in configLines.reverse()
tokens = line.split /\s+/
- switch tokens[0]
+ switch tokens[0].toLowerCase()
when "map"
if 3 <= tokens.length and not unmapAll
[_, key, command, optionList...] = tokens
@@ -32,7 +32,7 @@ Commands =
when "unmap"
if tokens.length == 2
seen[tokens[1]] = true
- when "unmapAll"
+ when "unmapall"
unmapAll = true
when "mapkey"
if tokens.length == 3