diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-07 15:36:14 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-07 15:36:14 +0000 |
commit | 316947eaa4bd0684c6b6b371f1b797aadd8ff586 (patch) | |
tree | acd946f50178fee1dc7b5a421cba9ceb538f8e40 /ext/curses/view.rb | |
parent | a3286ba320deabfd60861eabaddbc0263cb429f8 (diff) | |
download | ruby-316947eaa4bd0684c6b6b371f1b797aadd8ff586.tar.gz |
* 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
Diffstat (limited to 'ext/curses/view.rb')
-rw-r--r-- | ext/curses/view.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/curses/view.rb b/ext/curses/view.rb index e033fd8ae2..bc54aeb9af 100644 --- a/ext/curses/view.rb +++ b/ext/curses/view.rb @@ -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 |