Skip to content

Commit

Permalink
Add binding C-x C-x to em_exchange_mark on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed May 30, 2021
1 parent 69beca2 commit 24a2489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/reline/ansi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def self.set_default_key_bindings(config)
{
# 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
Expand Down
1 change: 1 addition & 0 deletions lib/reline/windows.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def self.set_default_key_bindings(config)

{
[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
Expand Down

0 comments on commit 24a2489

Please sign in to comment.