diff options
Diffstat (limited to 'ext/tk/lib/tk/text.rb')
-rw-r--r-- | ext/tk/lib/tk/text.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/tk/lib/tk/text.rb b/ext/tk/lib/tk/text.rb index efede9861f..fbe1c08c76 100644 --- a/ext/tk/lib/tk/text.rb +++ b/ext/tk/lib/tk/text.rb @@ -519,13 +519,13 @@ class TkText<TkTextWin alias deltag tag_delete alias delete_tag tag_delete - def tag_bind(tag, seq, cmd=Proc.new, args=nil) - _bind([@path, 'tag', 'bind', tag], seq, cmd, args) + def tag_bind(tag, seq, cmd=Proc.new, *args) + _bind([@path, 'tag', 'bind', tag], seq, cmd, *args) self end - def tag_bind_append(tag, seq, cmd=Proc.new, args=nil) - _bind_append([@path, 'tag', 'bind', tag], seq, cmd, args) + def tag_bind_append(tag, seq, cmd=Proc.new, *args) + _bind_append([@path, 'tag', 'bind', tag], seq, cmd, *args) self end |