[前][次][番号順一覧][スレッド一覧]

ruby-changes:58970

From: aycabta <ko1@a...>
Date: Sat, 30 Nov 2019 11:24:08 +0900 (JST)
Subject: [ruby-changes:58970] f8cc05dec3 (master): Use @eof variable for ReidlineInputMethod#eof?

https://git.ruby-lang.org/ruby.git/commit/?id=f8cc05dec3

From f8cc05dec37f78b15814d0b936786d4e84d7d448 Mon Sep 17 00:00:00 2001
From: aycabta <aycabta@g...>
Date: Sat, 30 Nov 2019 11:14:35 +0900
Subject: 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.

diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index caa51c8..a1777d7 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -269,7 +269,7 @@ module IRB https://github.com/ruby/ruby/blob/trunk/lib/irb/input-method.rb#L269
     #
     # 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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]