From 81e6af427fede8f19d0d2add8783f76638121da4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 20 Mar 2011 11:20:16 -0400 Subject: [PATCH] Bug - Corrected terminal size calculation for "limit:page", which was assuming 2 blank lines, instead of 1. --- src/custom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/custom.cpp b/src/custom.cpp index e61f3600d..104c7e0e4 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -659,7 +659,7 @@ int handleCustomReport (const std::string& report, std::string& outs) // Adjust for fluff in the output. if (maxlines) - maxlines -= (context.config.getBoolean ("blanklines") ? 2 : 0) + maxlines -= (context.config.getBoolean ("blanklines") ? 1 : 0) + table_header + context.headers.size () + context.footnotes.size ();