1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use @eof variable for ReidlineInputMethod#eof?

"IRB::InputMethod#eof?" requires eof status each user input but
"ReidlineInputMethod#eof?" used "Reline.eof?" what is singleton data.
"ReidlineInputMethod#eof?" is changed to use the result of user input.
This commit is contained in:
aycabta 2019-11-30 11:14:35 +09:00
parent 0b1b2f2442
commit f8cc05dec3

View file

@ -269,7 +269,7 @@ module IRB
#
# See IO#eof? for more information.
def eof?
super
@eof
end
# Whether this input method is still readable when there is no more data to