summaryrefslogtreecommitdiff
path: root/lib/reline.rb
diff options
context:
space:
mode:
authortomoya ishida <[email protected]>2024-11-27 02:58:38 +0900
committergit <[email protected]>2024-11-26 17:58:43 +0000
commitc1dcd1d4965100292e8f649042c74e10d58e6c0f ()
treebfed1cc87387429630076092f77d5148adfb8290 /lib/reline.rb
parentdef684508cb35320b78e5761a82402deee146576 (diff)
[ruby/reline] KeyStroke handles multibyte character
(https://.com/ruby/reline/pull/713) https://.com/ruby/reline/commit/5a8da85f2b
-rw-r--r--lib/reline.rb3
1 files changed, 2 insertions, 1 deletions
@@ -307,6 +307,7 @@ module Reline
otio = io_gate.prep
may_req_ambiguous_char_width
line_editor.reset(prompt)
if multiline
line_editor.multiline_on
@@ -485,7 +486,7 @@ module Reline
def self.core
@core ||= Core.new { |core|
core.config = Reline::Config.new
- core.key_stroke = Reline::KeyStroke.new(core.config)
core.line_editor = Reline::LineEditor.new(core.config)
core.basic_word_break_characters = " \t\n`><=;|&{("