From 85ff2d74a217a02d050492e607b3a2764645107b Mon Sep 17 00:00:00 2001 From: aycabta Date: Wed, 19 Jun 2019 08:28:00 +0900 Subject: Avoid auto indent in prompt when dynamic auto indent --- lib/irb.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/irb.rb b/lib/irb.rb index eee6c3a6f1..2c7b17da6b 100644 --- a/lib/irb.rb +++ b/lib/irb.rb @@ -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 -- cgit v1.2.3