From 45346b10ffeca24cf6d66f30a95325c6537cb2ec Mon Sep 17 00:00:00 2001 From: vain Date: Sun, 29 Apr 2018 05:00:30 -0400 Subject: [PATCH] Fix Tk::Text#count not sending arguments to tcl. --- lib/tk/text.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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