lib/sup/modes/line-cursor-mode.rb in sup-0.0.4 vs lib/sup/modes/line-cursor-mode.rb in sup-0.0.5
- old
+ new
@@ -122,10 +122,11 @@
end
private
def set_status
- @status = "line #{@curpos + 1} of #{lines}"
+ l = lines
+ @status = l > 0 ? "line #{@curpos + 1} of #{l}" : ""
end
end
end