ruby-changes:59106
From: aycabta <ko1@a...>
Date: Sat, 7 Dec 2019 22:05:03 +0900 (JST)
Subject: [ruby-changes:59106] ad6837dd60 (master): [ruby/irb] Revert "Reidline mode needs Reline what needs String#grapheme_clusters"
https://git.ruby-lang.org/ruby.git/commit/?id=ad6837dd60 From ad6837dd609654b02885199b25f7d79b1122b64a Mon Sep 17 00:00:00 2001 From: aycabta <aycabta@g...> Date: Sat, 7 Dec 2019 20:21:08 +0900 Subject: [ruby/irb] Revert "Reidline mode needs Reline what needs String#grapheme_clusters" This reverts commit 2b0b19b87c60d2cdb329979acbb96e12a1f940e7. New IRB parser needs new Ripper what has lex_state too. The new Ripper is adopted by Ruby 2.5 or later. https://github.com/ruby/irb/commit/9ab6e35a2c diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index a361f03..a1777d7 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 if RUBY_VERSION >= "2.5.0" # Reline needs String#grapheme_clusters + end end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/