mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix #191
- Fixed bug that failed to anchor to end of string when searching for "cal" or "itask", but instead matched on elements of the path, like /usr/local/bin. Thanks to Eric Farris.
This commit is contained in:
parent
844dd473e6
commit
bf3e69add6
3 changed files with 14 additions and 13 deletions
18
AUTHORS
18
AUTHORS
|
@ -1,13 +1,10 @@
|
||||||
Principal Author:
|
The development of task was made possible by the significant contributions of the following people:
|
||||||
Paul Beckingham
|
Paul Beckingham (Principal Author)
|
||||||
|
Federico Hernandez (Package Maintainer & Contributing Author)
|
||||||
|
David J Patrick (Designer)
|
||||||
|
John Florian (Contributing Author)
|
||||||
|
|
||||||
Package Maintainer & Contributing Author:
|
The following submitted code, packages or analysis, and deserve special thanks:
|
||||||
Federico Hernandez
|
|
||||||
|
|
||||||
Designer:
|
|
||||||
David J Patrick
|
|
||||||
|
|
||||||
Contributing Authors:
|
|
||||||
Damian Glenny
|
Damian Glenny
|
||||||
Andy Lester
|
Andy Lester
|
||||||
H. İbrahim Güngör
|
H. İbrahim Güngör
|
||||||
|
@ -20,9 +17,8 @@ Contributing Authors:
|
||||||
P.C. Shyamshankar
|
P.C. Shyamshankar
|
||||||
Johan Friis
|
Johan Friis
|
||||||
Steven de Brouwer
|
Steven de Brouwer
|
||||||
John Florian
|
|
||||||
|
|
||||||
With thanks to:
|
Thanks to the following, who submitted detailed bug reports and excellent suggestions:
|
||||||
Eugene Kramer
|
Eugene Kramer
|
||||||
Srijith K
|
Srijith K
|
||||||
Bruce Israel
|
Bruce Israel
|
||||||
|
|
|
@ -67,7 +67,9 @@ void Context::initialize (int argc, char** argv)
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
{
|
{
|
||||||
program = argv[i];
|
program = argv[i];
|
||||||
if (program.find ("cal") != std::string::npos)
|
std::string::size_type cal = program.find ("/cal");
|
||||||
|
if (program == "cal" ||
|
||||||
|
(cal != std::string::npos && program.length () == cal + 4))
|
||||||
args.push_back ("calendar");
|
args.push_back ("calendar");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -49,7 +49,10 @@ int main (int argc, char** argv)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
context.initialize (argc, argv);
|
context.initialize (argc, argv);
|
||||||
if (context.program.find ("itask") != std::string::npos)
|
|
||||||
|
std::string::size_type itask = context.program.find ("/itask");
|
||||||
|
if (context.program == "itask" ||
|
||||||
|
(itask != std::string::npos && context.program.length () == itask + 5))
|
||||||
status = context.interactive ();
|
status = context.interactive ();
|
||||||
else
|
else
|
||||||
status = context.run ();
|
status = context.run ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue