Commit c4b6877
committed
fix: allow non-alphabetic Ctrl keystrokes (restore Ctrl+Space support)
The previous commit restricted Ctrl keystroke validation to a-z/A-Z only,
which broke built-in Emacs and Readline profiles that use Ctrl+Space
(C-SPC) for set_mark / set_mark_command. Restore the original behavior
of accepting any non-zero rune for Ctrl keystrokes, since terminals
support combinations like C-SPC, C-@, and C-_ as valid bindings.
Fixes TestValidateAllBuiltinProfiles and TestProfileSwitcher_CanSwitchTo_Valid.1 parent 2c1a7aa commit c4b6877
1 file changed
+3
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
409 | 410 | | |
410 | 411 | | |
411 | 412 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | 413 | | |
416 | 414 | | |
417 | 415 | | |
| |||
0 commit comments