summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2022-11-04 16:43:55 +1100
committerMaxime Coste <mawww@kakoune.org>2022-11-04 16:43:55 +1100
commitdcdafdea778cc74545d7daaab8b70a6bf200001b (patch)
tree7be1137105b4980f289139e419129414225cdf4e /src
parentca6a701b8036db84fd149dceca665966748491a8 (diff)
Remove wrong rejection of upper case mappings in goto mode
Mapping upper case keys is legitimate, for exampled so that they behave the same as a lower case mapping. The current rejection of those mappings is a misguided attempt to prevent mapping *to* upper case keys as those will never get triggered. Closes #4769
Diffstat (limited to 'src')
-rw-r--r--src/commands.cc5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/commands.cc b/src/commands.cc
index 660a2726..001ba0f9 100644
--- a/src/commands.cc
+++ b/src/commands.cc
@@ -1875,11 +1875,6 @@ const CommandDesc map_key_cmd = {
if (key.size() != 1)
throw runtime_error("only a single key can be mapped");
- KeymapMode lower_case_only_modes[] = {KeymapMode::Goto};
- if (key[0].codepoint().map(iswupper).value_or(false) and
- contains(lower_case_only_modes, keymap_mode))
- throw runtime_error("mode only supports lower case mappings");
-
KeyList mapping = parse_keys(parser[3]);
keymaps.map_key(key[0], keymap_mode, std::move(mapping),
trim_indent(parser.get_switch("docstring").value_or("")));