mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Limits
- Implemented built-in support for limits.
This commit is contained in:
parent
9603864924
commit
b70fa61f34
3 changed files with 25 additions and 8 deletions
|
@ -277,10 +277,10 @@ void CmdCustom::getLimits (const std::string& report, int& rows, int& lines)
|
|||
|
||||
// If the custom report has a defined limit, then allow a numeric override.
|
||||
// This is an integer specified as a filter (limit:10).
|
||||
/*
|
||||
if (context.task.has ("limit"))
|
||||
std::string limit = context.args.find_limit ();
|
||||
if (limit != "")
|
||||
{
|
||||
if (context.task.get ("limit") == "page")
|
||||
if (limit == "page")
|
||||
{
|
||||
if (screenheight == 0)
|
||||
screenheight = context.getHeight ();
|
||||
|
@ -290,11 +290,10 @@ void CmdCustom::getLimits (const std::string& report, int& rows, int& lines)
|
|||
}
|
||||
else
|
||||
{
|
||||
rows = atoi (context.task.get ("limit").c_str ());
|
||||
rows = (int) strtol (limit.c_str (), NULL, 10);
|
||||
lines = 0;
|
||||
}
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue