summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2020-01-28 03:21:02 +0900
committeraycabta <aycabta@gmail.com>2020-01-29 15:11:59 +0900
commit5d124a3b68982e779946804b5b9578c403c6bdf2 (patch)
tree3b21f3e8d39181a51b247d6e34d018edd89fe778 /lib
parentd142b37bdc05986f5caec8981550e97cfb7b1ce0 (diff)
[ruby/reline] Support GNOME style Home/End key sequences [Bug #16510]
https://github.com/ruby/reline/commit/788f0df845
Diffstat (limited to 'lib')
-rw-r--r--lib/reline/ansi.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb
index 395721ea81..33b74f51af 100644
--- a/lib/reline/ansi.rb
+++ b/lib/reline/ansi.rb
@@ -15,6 +15,8 @@ class Reline::ANSI
[27, 91, 52, 126] => :ed_move_to_end, # End
[27, 91, 72] => :ed_move_to_beg, # Home
[27, 91, 70] => :ed_move_to_end, # End
+ [27, 79, 72] => :ed_move_to_beg, # Home
+ [27, 79, 70] => :ed_move_to_end, # End
[27, 32] => :em_set_mark, # M-<space>
[24, 24] => :em_exchange_mark, # C-x C-x TODO also add Windows
[27, 91, 49, 59, 53, 67] => :em_next_word, # Ctrl+→