1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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

View file

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