Fix modified keys not being mappable in goto mode
The test was invalid, non-codepoint keys should be considered mappable. Fixes #4521
This commit is contained in:
parent
d44d07bd80
commit
4bd34caf4f
|
@ -1816,7 +1816,7 @@ const CommandDesc map_key_cmd = {
|
|||
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(true) and
|
||||
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");
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
g<a-X>d
|
|
@ -0,0 +1 @@
|
|||
foo
|
|
@ -0,0 +1 @@
|
|||
fo
|
|
@ -0,0 +1 @@
|
|||
map global goto <a-X> l
|
Loading…
Reference in New Issue
Block a user