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

ruby-changes:59103

From: aycabta <ko1@a...>
Date: Sat, 7 Dec 2019 20:07:58 +0900 (JST)
Subject: [ruby-changes:59103] c2afddccb3 (master): [ruby/irb] Reidline mode needs Reline what needs String#grapheme_clusters

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

From c2afddccb36c10ac0eb530bfc3b38765882126d8 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sat, 7 Dec 2019 19:51:03 +0900
Subject: [ruby/irb] Reidline mode needs Reline what needs
 String#grapheme_clusters

https://github.com/ruby/irb/commit/2b0b19b87c

diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index a1777d7..a361f03 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -293,5 +293,5 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/input-method.rb#L293
     def encoding
       @stdin.external_encoding
     end
-  end
+  end if RUBY_VERSION >= "2.5.0" # Reline needs String#grapheme_clusters
 end
-- 
cgit v0.10.2


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

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