Avoid auto indent in prompt when dynamic auto indent

This commit is contained in:
aycabta 2019-06-19 08:28:00 +09:00
parent 84903b31c8
commit 85ff2d74a2

View File

@ -462,7 +462,7 @@ module IRB
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