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:
parent
c93ca8ee38
commit
dbee7c9072
1 changed files with 1 additions and 1 deletions
|
@ -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] = ''
|
||||||
|
|
Loading…
Reference in a new issue