diff options
Diffstat (limited to 'ext/tk/lib/tk/texttag.rb')
-rw-r--r-- | ext/tk/lib/tk/texttag.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/tk/lib/tk/texttag.rb b/ext/tk/lib/tk/texttag.rb index 1e3a2d7e41..6201c7caa8 100644 --- a/ext/tk/lib/tk/texttag.rb +++ b/ext/tk/lib/tk/texttag.rb @@ -173,7 +173,7 @@ class TkTextTag<TkObject #end def bind(seq, *args) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) - if TkComm._callback_entry?(args[0]) + if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new @@ -188,7 +188,7 @@ class TkTextTag<TkObject #end def bind_append(seq, *args) # if args[0].kind_of?(Proc) || args[0].kind_of?(Method) - if TkComm._callback_entry?(args[0]) + if TkComm._callback_entry?(args[0]) || !block_given? cmd = args.shift else cmd = Proc.new |