Skip to content

Commit

Permalink
make IRB.formatter.prompt deal with nil for no prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
sohocoke committed Apr 17, 2012
1 parent 3bd1b44 commit 8dde054
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb/formatter.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def prompt(context, ignore_auto_indent = false, level = nil)
prompt = case @prompt prompt = case @prompt
when :default then DEFAULT_PROMPT % [context.object.inspect, context.line, level] when :default then DEFAULT_PROMPT % [context.object.inspect, context.line, level]
when :simple then SIMPLE_PROMPT when :simple then SIMPLE_PROMPT
when :no_prompt then NO_PROMPT when :no_prompt, nil then NO_PROMPT
else else
@prompt % [context.object.inspect, context.line, level] @prompt % [context.object.inspect, context.line, level]
end end
Expand Down

0 comments on commit 8dde054

Please sign in to comment.