From ad6837dd609654b02885199b25f7d79b1122b64a Mon Sep 17 00:00:00 2001 From: aycabta 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 --- lib/irb/input-method.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb index a361f035cd..a1777d7904 100644 --- a/lib/irb/input-method.rb +++ b/lib/irb/input-method.rb @@ -293,5 +293,5 @@ module IRB def encoding @stdin.external_encoding end - end if RUBY_VERSION >= "2.5.0" # Reline needs String#grapheme_clusters + end end -- cgit v1.2.3