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

@ -135,6 +135,11 @@ Tue Nov 6 05:48:06 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
TestRequire#test_require_to_str_redefined_in_load_path):
Suppress method redefined warning when test-all with RUBYOPT=-w.
Thu Nov 8 00:24:14 2012 Akinori MUSHA <knu@iDaemons.org>
* ext/curses/view.rb: Do not fail if the file to view is shorter
than the screen height.
Mon Nov 5 11:40:00 2012 Mark Somerville <mark@scottishclmibs.com>
* thread_pthread.c (rb_reserved_fd_p): fix typo in macro check

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