1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[ruby/reline] Add binding C-x C-x to em_exchange_mark on Windows

https://github.com/ruby/reline/commit/24a2489b62
This commit is contained in:
aycabta 2021-05-30 17:19:57 +09:00
parent 882c0d5015
commit 8135f489be
2 changed files with 2 additions and 1 deletions

View file

@ -35,7 +35,7 @@ class Reline::ANSI
{
# default bindings
[27, 32] => :em_set_mark, # M-<space>
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows
[24, 24] => :em_exchange_mark, # C-x C-x
}.each_pair do |key, func|
config.add_default_key_binding_by_keymap(:emacs, key, func)
end

View file

@ -38,6 +38,7 @@ class Reline::Windows
{
[27, 32] => :em_set_mark, # M-<space>
[24, 24] => :em_exchange_mark, # C-x C-x
}.each_pair do |key, func|
config.add_default_key_binding_by_keymap(:emacs, key, func)
end