mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-02 03:37:19 +02:00
Bug
- Fixed 'limit:N' bug, whereby when a report specifies a limit, and the user overrides it, there are potentially two limit arguments, in which case the last one, not the first one is needed.
This commit is contained in:
parent
37edd06027
commit
1b90adc1aa
2 changed files with 2 additions and 3 deletions
|
@ -673,8 +673,8 @@ bool Arguments::find_command (std::string& command)
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
std::string Arguments::find_limit ()
|
std::string Arguments::find_limit ()
|
||||||
{
|
{
|
||||||
std::vector <std::pair <std::string, std::string> >::iterator arg;
|
std::vector <std::pair <std::string, std::string> >::reverse_iterator arg;
|
||||||
for (arg = this->begin (); arg != this->end (); ++arg)
|
for (arg = this->rbegin (); arg != this->rend (); ++arg)
|
||||||
if (arg->first.find ("limit:") != std::string::npos)
|
if (arg->first.find ("limit:") != std::string::npos)
|
||||||
return arg->first.substr (6);
|
return arg->first.substr (6);
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,6 @@
|
||||||
//
|
//
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#include <iostream>
|
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <map>
|
#include <map>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue