From 2f74adca0eb58e680e9a1930c8b11e01dd40e6c4 Mon Sep 17 00:00:00 2001 From: wmorgan Date: Fri, 5 Jan 2007 22:40:57 +0000 Subject: [PATCH] no status line with 0 lines git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@193 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- lib/sup/modes/line-cursor-mode.rb | 3 ++- 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 index 373a5fc..5efefae 100644 --- 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 -- 2.45.2