summaryrefslogtreecommitdiff
path: root/lib/irb.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/irb.rb')
-rw-r--r--lib/irb.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/irb.rb b/lib/irb.rb
index f5e662ac51..119e1a45d8 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -64,7 +64,7 @@ module IRB
trap("SIGINT") do
irb.signal_handle
end
-
+
catch(:IRB_EXIT) do
irb.eval_input
end
@@ -84,7 +84,7 @@ module IRB
end
#
- # irb interpreter main routine
+ # irb interpreter main routine
#
class Irb
def initialize(workspace = nil, input_method = nil, output_method = nil)
@@ -125,7 +125,7 @@ module IRB
end
end
end
-
+
@scanner.set_input(@context.io) do
signal_status(:IN_INPUT) do
if l = @context.io.gets
@@ -158,7 +158,7 @@ module IRB
print exc.class, ": ", exc, "\n"
if exc.backtrace[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/ &&
!(SyntaxError === exc)
- irb_bug = true
+ irb_bug = true
else
irb_bug = false
end
@@ -174,7 +174,7 @@ module IRB
else
lasts.push "\tfrom "+m
if lasts.size > @context.back_trace_limit
- lasts.shift
+ lasts.shift
levels += 1
end
end
@@ -279,13 +279,13 @@ module IRB
when "l"
ltype
when "i"
- if $1
+ if $1
format("%" + $1 + "d", indent)
else
indent.to_s
end
when "n"
- if $1
+ if $1
format("%" + $1 + "d", line_no)
else
line_no.to_s