From de860552ebd973fe15d2b26acc13072f84688dca Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 15 Oct 2003 02:27:56 +0000 Subject: * marshal.c (w_object): dump extended modules as well. * marshal.c (r_object0): TYPE_USRMARSHAL should restore extended modules before invoking marshal_load. these two fixes are done by Masatoshi Seki . * parse.y (yylex): argument parentheses preceded by spaces should be warned; not error. [ruby-talk:84103] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/irb/context.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/irb') diff --git a/lib/irb/context.rb b/lib/irb/context.rb index f4d0d9828..9421608f8 100644 --- a/lib/irb/context.rb +++ b/lib/irb/context.rb @@ -58,7 +58,7 @@ module IRB case input_method when nil - if (defined? (ReadlineInputMethod) && + if (defined?(ReadlineInputMethod) && (use_readline? || IRB.conf[:PROMPT_MODE] != :INF_RUBY && STDIN.tty?)) @io = ReadlineInputMethod.new else -- cgit