summaryrefslogtreecommitdiff
path: root/ext/tk/lib/tkextlib
diff options
context:
space:
mode:
authornagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-31 05:58:20 +0000
committernagai <nagai@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-08-31 05:58:20 +0000
commita70798361f98b85237c2f5d2198a936de3043058 (patch)
treee33b12cf771cb8d82262e6f1586a4ef2e09fd77a /ext/tk/lib/tkextlib
parent75541f6a4c10f98a752598347828dee5edfefd3e (diff)
* 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/branches/ruby_1_8@10807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/tk/lib/tkextlib')
-rw-r--r--ext/tk/lib/tkextlib/blt.rb4
1 files changed, 2 insertions, 2 deletions
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 << '&'