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

ruby-changes:37748

From: usa <ko1@a...>
Date: Tue, 3 Mar 2015 23:42:32 +0900 (JST)
Subject: [ruby-changes:37748] usa:r49829 (trunk): * tool/redmine-backporter.rb (Readline.readline): drop untreated control

usa	2015-03-03 23:42:15 +0900 (Tue, 03 Mar 2015)

  New Revision: 49829

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

  Log:
    * tool/redmine-backporter.rb (Readline.readline): drop untreated control
      characters.

  Modified files:
    trunk/ChangeLog
    trunk/tool/redmine-backporter.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 49828)
+++ ChangeLog	(revision 49829)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue Mar  3 23:41:42 2015  NAKAMURA Usaku  <usa@r...>
+
+	* tool/redmine-backporter.rb (Readline.readline): drop untreated control
+	  characters.
+
 Tue Mar  3 22:25:24 2015  NAKAMURA Usaku  <usa@r...>
 
 	* test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because
Index: tool/redmine-backporter.rb
===================================================================
--- tool/redmine-backporter.rb	(revision 49828)
+++ tool/redmine-backporter.rb	(revision 49829)
@@ -239,8 +239,10 @@ class << Readline https://github.com/ruby/ruby/blob/trunk/tool/redmine-backporter.rb#L239
         print cls
         print line
       else
-        print c
-        line << c
+        if c >= " "
+          print c
+          line << c
+        end
       end
     end
   end

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

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