summaryrefslogtreecommitdiffstats
path: root/ext/tk/lib
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tk/lib')
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/notebook.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/tk/lib/tkextlib/iwidgets/notebook.rb b/ext/tk/lib/tkextlib/iwidgets/notebook.rb
index c0897b884..4df56cce7 100644
--- a/ext/tk/lib/tkextlib/iwidgets/notebook.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/notebook.rb
@@ -140,7 +140,7 @@ class Tk::Iwidgets::Notebook
alias scrollbar yscrollbar
def view(*idxs)
- if idxss.size == 0
+ if idxs.size == 0
window(tk_send_without_enc('view'))
else
tk_send_without_enc('view', *idxs)