From fce4633de6434f27b539267e16a20ce711608860 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Fri, 6 Aug 2010 18:51:38 -0400 Subject: [PATCH] Bug #459 - Error when using limit:n where n < lines on screen and < results - Fixed bug that displays 'limit' result lines when it has no need to. --- ChangeLog | 2 ++ src/custom.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e0a043f8d..ac137de3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -47,6 +47,8 @@ time, not just on add. + Fixed bug #452, which defines a higher resolution division between due and overdue. + + Fixed bug #459, which showed a confusing message when 'limit:page' was + used, with few tasks. + Fixed problem with command line configuration overrides that had no values. + Fixed problem with the 'undo' command not observing the rc.color or the diff --git a/src/custom.cpp b/src/custom.cpp index 1dcb49db7..5938c5e0c 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -659,7 +659,7 @@ int handleCustomReport (const std::string& report, std::string &outs) if (maxrows) out << ", " << maxrows << " shown"; - if (maxlines) + if (maxlines < table.rowCount ()) out << ", truncated to " << maxlines-1 << " lines"; out << std::endl;