Skip to content

Commit

Permalink
Avoid auto indent in prompt when dynamic auto indent
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Jun 18, 2019
1 parent 84903b3 commit 85ff2d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irb.rb
Expand Up @@ -462,7 +462,7 @@ def eval_input
else
@context.io.prompt = p = ""
end
if @context.auto_indent_mode
if @context.auto_indent_mode and !@context.io.respond_to?(:auto_indent)
unless ltype
ind = prompt(@context.prompt_i, ltype, indent, line_no)[/.*\z/].size +
indent * 2 - p.size
Expand Down

0 comments on commit 85ff2d7

Please sign in to comment.