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.
This commit is contained in:
Paul Beckingham 2010-08-06 18:51:38 -04:00
parent aa891401e4
commit fce4633de6
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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;