[前][次][番号順一覧][スレッド一覧]

ruby-changes:33057

From: usa <ko1@a...>
Date: Sat, 22 Feb 2014 20:50:59 +0900 (JST)
Subject: [ruby-changes:33057] usa:r45136 (trunk): * tool/redmine-backporter.rb: should add the value after checking error.

usa	2014-02-22 20:50:56 +0900 (Sat, 22 Feb 2014)

  New Revision: 45136

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45136

  Log:
    * tool/redmine-backporter.rb: should add the value after checking error.

  Modified files:
    trunk/tool/redmine-backporter.rb
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 45135)
+++ tool/redmine-backporter.rb	(revision 45136)
@@ -77,9 +77,9 @@ class String https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L77
       seq << "\e[#{c}m"
     end
     if back
-      c = COLORS[back] + 10
+      c = COLORS[back]
       raise "unknown background color #{back}" unless c
-      seq << "\e[#{c}m"
+      seq << "\e[#{c + 10}m"
     end
     if seq.empty?
       self

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]