From e9bc8b35c6c860e227627e3b0aab86b4f51c59af Mon Sep 17 00:00:00 2001 From: aycabta Date: Sun, 8 Sep 2019 03:26:09 +0900 Subject: Behave ESC key correctly when vi command mode --- lib/reline/line_editor.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/reline/line_editor.rb') diff --git a/lib/reline/line_editor.rb b/lib/reline/line_editor.rb index 597a39107b..2e964cb74a 100644 --- a/lib/reline/line_editor.rb +++ b/lib/reline/line_editor.rb @@ -1049,6 +1049,8 @@ class Reline::LineEditor end end + private def ed_unassigned(key) end # do nothing + private def ed_insert(key) if key.instance_of?(String) width = Reline::Unicode.get_mbchar_width(key) -- cgit v1.2.3