commit 2f74adca0eb58e680e9a1930c8b11e01dd40e6c4
parent 685765fbb1bcb206a5b8c33a7b8f7e0da7587264
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Fri, 5 Jan 2007 22:40:57 +0000
no status line with 0 lines
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@193 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/lib/sup/modes/line-cursor-mode.rb b/lib/sup/modes/line-cursor-mode.rb
@@ -124,7 +124,8 @@ protected
private
def set_status
- @status = "line #{@curpos + 1} of #{lines}"
+ l = lines
+ @status = l > 0 ? "line #{@curpos + 1} of #{l}" : ""
end
end