Permalink
Browse files

make IRB.formatter.prompt deal with nil for no prompt

  • Loading branch information...
1 parent 3bd1b44 commit 8dde0541ca5d81b46474989adcb06d6b937fc7a1 @sohocoke committed Apr 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/irb/formatter.rb
View
@@ -39,7 +39,7 @@ def prompt(context, ignore_auto_indent = false, level = nil)
prompt = case @prompt
when :default then DEFAULT_PROMPT % [context.object.inspect, context.line, level]
when :simple then SIMPLE_PROMPT
- when :no_prompt then NO_PROMPT
+ when :no_prompt, nil then NO_PROMPT
else
@prompt % [context.object.inspect, context.line, level]
end

0 comments on commit 8dde054

Please sign in to comment.