summaryrefslogtreecommitdiff
path: root/lib/irb
diff options
context:
space:
mode:
authoraycabta <aycabta@gmail.com>2019-11-30 11:14:35 +0900
committeraycabta <aycabta@gmail.com>2019-11-30 11:20:39 +0900
commitf8cc05dec37f78b15814d0b936786d4e84d7d448 (patch)
treef59f6aaa9bb963d2d25f73db122260a384172bcc /lib/irb
parent0b1b2f2442744f0add4dec47e475e25cde602dcf (diff)
downloadruby-f8cc05dec37f78b15814d0b936786d4e84d7d448.tar.gz
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.
Diffstat (limited to 'lib/irb')
-rw-r--r--lib/irb/input-method.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index caa51c8ccf..a1777d7904 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -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