* ext/tk/sample/tktextio.rb: 'hist_size' option causes error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11592 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2007-01-29 19:56:48 +00:00
parent e43d14725f
commit 4d0ec108af

View file

@ -108,7 +108,7 @@ class TkTextIO < TkText
@lineno = 0
@line_offset = 0
@hist_max = opts['hist_size']
@hist_max = opts['hist_size'].to_i
@hist_index = 0
@history = Array.new(@hist_max)
@history[0] = ''