summaryrefslogtreecommitdiff
path: root/lang/ruby18-base/patches/patch-bn
blob: 6c4adc491526dd5b0b49c0263e411ec18eef8478 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
$NetBSD: patch-bn,v 1.1 2005/11/02 08:56:40 taca Exp $

--- lib/irb.rb.orig	2005-04-20 04:24:56.000000000 +0900
+++ lib/irb.rb
@@ -119,7 +119,7 @@ module IRB
 	end
 	if @context.auto_indent_mode
 	  unless ltype
-	    ind = prompt(@context.prompt_i, ltype, indent, line_no).size + 
+            ind = prompt(@context.prompt_i, ltype, indent, line_no)[/.*\z/].size +
 	      indent * 2 - p.size
 	    ind += 2 if continue
 	    @context.io.prompt = p + " " * ind if ind > 0