From b8597ccb1c5c56a701be13959661be11f1662b55 Mon Sep 17 00:00:00 2001 From: nagai Date: Thu, 31 Aug 2006 05:58:20 +0000 Subject: [PATCH] * ext/tk/lib/tkextlib/blt.rb: double dashes (--) option doesn't work properly on some versions of BLT (wrong description on the manual of `blt::bgexec'?). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/tk/ChangeLog.tkextlib | 6 ++++++ ext/tk/lib/tkextlib/blt.rb | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ext/tk/ChangeLog.tkextlib b/ext/tk/ChangeLog.tkextlib index fa5524da01..fad15e8822 100644 --- a/ext/tk/ChangeLog.tkextlib +++ b/ext/tk/ChangeLog.tkextlib @@ -1,3 +1,9 @@ +2006-08-31 Hidetoshi NAGAI + + * lib/tkextlib/blt.rb: double dashes (--) option doesn't work + properly on some versions of BLT (wrong description on the + manual of `blt::bgexec'?). + 2005-12-11 Hidetoshi NAGAI * lib/tkextlib/SUPPORT_STATUS: update to support libraries in diff --git a/ext/tk/lib/tkextlib/blt.rb b/ext/tk/lib/tkextlib/blt.rb index 8ac8605513..115eb927ba 100644 --- a/ext/tk/lib/tkextlib/blt.rb +++ b/ext/tk/lib/tkextlib/blt.rb @@ -68,7 +68,7 @@ module Tk params.concat(hash_kv(args.shift, true)) if args[0].kind_of?(Hash) - params << '--' + params << '--' if args[0] =~ /^\s*-[^-]/ params.concat(args) tk_call('::blt::bgexec', *params) @@ -85,7 +85,7 @@ module Tk params.concat(hash_kv(args.shift, true)) if args[0].kind_of?(Hash) - params << '--' + params << '--' if args[0] =~ /^\s*-[^-]/ params.concat(args) params << '&'