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

* ext/curses/view.rb: Do not fail if the file to view is shorter

than the screen height.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
knu 2012-11-07 15:36:14 +00:00
parent a3286ba320
commit 316947eaa4
2 changed files with 6 additions and 1 deletions

View file

@ -40,7 +40,7 @@ while TRUE
while i < lines
setpos(i, 0)
#clrtoeol
addstr(data_lines[lptr + i]) #if data_lines[lptr + i]
addstr(data_lines[lptr + i] || '')
i += 1
end
refresh