mirror of
https://github.com/ruby/ruby.git
synced 2025-09-18 01:54:00 +02:00
* 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:
parent
e43d14725f
commit
4d0ec108af
1 changed files with 1 additions and 1 deletions
|
@ -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] = ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue