Skip to content

Commit

Permalink
[ruby/irb] Revert "Reidline mode needs Reline what needs String#graph…
Browse files Browse the repository at this point in the history
…eme_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.

ruby/irb@9ab6e35a2c
  • Loading branch information
aycabta committed Dec 7, 2019
1 parent c2afddc commit ad6837d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/input-method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,5 +293,5 @@ def line(line_no)
def encoding
@stdin.external_encoding
end
end if RUBY_VERSION >= "2.5.0" # Reline needs String#grapheme_clusters
end
end

0 comments on commit ad6837d

Please sign in to comment.