From d1d5264c6c89e6d7573e715a7a6c2cf4cae2e5f9 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 3 Mar 2015 14:42:15 +0000 Subject: [PATCH] * tool/redmine-backporter.rb (Readline.readline): drop untreated control characters. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ tool/redmine-backporter.rb | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6b09fe7ee9..07c8eb625c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Tue Mar 3 23:41:42 2015 NAKAMURA Usaku + + * tool/redmine-backporter.rb (Readline.readline): drop untreated control + characters. + Tue Mar 3 22:25:24 2015 NAKAMURA Usaku * test/lib/envutil.rb (EnvUtil.invoke_ruby): need to rescue because diff --git a/tool/redmine-backporter.rb b/tool/redmine-backporter.rb index 54cb631543..0bd0b3f898 100755 --- a/tool/redmine-backporter.rb +++ b/tool/redmine-backporter.rb @@ -239,8 +239,10 @@ class << Readline print cls print line else - print c - line << c + if c >= " " + print c + line << c + end end end end