Avoid auto indent in prompt when dynamic auto indent
This commit is contained in:
parent
84903b31c8
commit
85ff2d74a2
@ -462,7 +462,7 @@ module IRB
|
|||||||
else
|
else
|
||||||
@context.io.prompt = p = ""
|
@context.io.prompt = p = ""
|
||||||
end
|
end
|
||||||
if @context.auto_indent_mode
|
if @context.auto_indent_mode and !@context.io.respond_to?(:auto_indent)
|
||||||
unless ltype
|
unless ltype
|
||||||
ind = prompt(@context.prompt_i, ltype, indent, line_no)[/.*\z/].size +
|
ind = prompt(@context.prompt_i, ltype, indent, line_no)[/.*\z/].size +
|
||||||
indent * 2 - p.size
|
indent * 2 - p.size
|
||||||
|
Loading…
x
Reference in New Issue
Block a user