diff --git a/lib/tk/text.rb b/lib/tk/text.rb index 616c3ae8..d109a063 100644 --- a/lib/tk/text.rb +++ b/lib/tk/text.rb @@ -641,9 +641,9 @@ def count(idx1, idx2, *opts) } args << _get_eval_enc_str(idx1) << _get_eval_enc_str(idx2) if cnt <= 1 - number(tk_send_without_enc('count', *opts)) + number(tk_send_without_enc('count', *args)) else - list(tk_send_without_enc('count', *opts)) + list(tk_send_without_enc('count', *args)) end end