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:
parent
0b1b2f2442
commit
f8cc05dec3
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue