[ruby/irb] fixes https://github.com/ruby/irb/pull/524
(https://github.com/ruby/irb/pull/696) https://github.com/ruby/irb/commit/59bcc07def
This commit is contained in:
parent
6ed1a504d4
commit
51e7fb5331
@ -535,7 +535,6 @@ module IRB
|
|||||||
prompt_i = @context.prompt_i.nil? ? "" : @context.prompt_i
|
prompt_i = @context.prompt_i.nil? ? "" : @context.prompt_i
|
||||||
ind = prompt(prompt_i, ltype, indent, line_no)[/.*\z/].size +
|
ind = prompt(prompt_i, ltype, indent, line_no)[/.*\z/].size +
|
||||||
indent * 2 - p.size
|
indent * 2 - p.size
|
||||||
ind += 2 if continue
|
|
||||||
@context.io.prompt = p + " " * ind if ind > 0
|
@context.io.prompt = p + " " * ind if ind > 0
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user