[前][次][番号順一覧][スレッド一覧]

ruby-changes:57737

From: aycabta <ko1@a...>
Date: Sat, 14 Sep 2019 00:12:15 +0900 (JST)
Subject: [ruby-changes:57737] 06bbacc086 (master): Revert "Support multibyte input"

https://git.ruby-lang.org/ruby.git/commit/?id=06bbacc086

From 06bbacc086d9a63c4443aafb19903b792c41c2e0 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sat, 14 Sep 2019 00:10:34 +0900
Subject: Revert "Support multibyte input"

This reverts commit 6d9e54816f828983bcf383ce6fce287bd3ca05b9.

diff --git a/lib/reline/ansi.rb b/lib/reline/ansi.rb
index 92d4522..2eca2b0 100644
--- a/lib/reline/ansi.rb
+++ b/lib/reline/ansi.rb
@@ -26,8 +26,7 @@ class Reline::ANSI https://github.com/ruby/ruby/blob/trunk/lib/reline/ansi.rb#L26
     unless @@buf.empty?
       return @@buf.shift
     end
-    c = @@input.raw(&:getbyte)
-    (c == 0x16 && @@input.raw(min: 0, tim: 0, &:getbyte)) || c
+    @@input.raw(&:getbyte)
   end
 
   def self.ungetc(c)
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]