lib/irb.rb in irb-1.6.4 vs lib/irb.rb in irb-1.7.0
- old
+ new
@@ -535,11 +535,11 @@
end
end
@context.io.prompt
end
- @scanner.set_input(@context.io) do
+ @scanner.set_input do
signal_status(:IN_INPUT) do
if l = @context.io.gets
print l if @context.verbose?
else
if @context.ignore_eof? and @context.io.readable_after_eof?
@@ -553,10 +553,10 @@
end
l
end
end
- @scanner.set_auto_indent
+ @scanner.configure_io(@context.io)
@scanner.each_top_level_statement do |line, line_no|
signal_status(:IN_EVAL) do
begin
if IRB.conf[:MEASURE] && IRB.conf[:MEASURE_CALLBACKS].empty?