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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nagai 2007-01-29 19:56:28 +00:00
parent c93ca8ee38
commit dbee7c9072
1 changed files with 1 additions and 1 deletions

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] = ''