mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Parser
- ::initialize only overrides Parser::minimumMatchLength when rc.abbreviation.minimum is non-zero.
This commit is contained in:
parent
68555315e0
commit
cefbaf779b
1 changed files with 3 additions and 1 deletions
|
@ -69,7 +69,9 @@ Parser::~Parser ()
|
||||||
void Parser::initialize (int argc, const char** argv)
|
void Parser::initialize (int argc, const char** argv)
|
||||||
{
|
{
|
||||||
// Set up constants.
|
// Set up constants.
|
||||||
minimumMatchLength = strtol (context.config.get ("abbreviation.minimum").c_str (), NULL, 10);
|
int override = context.config.getInteger ("abbreviation.minimum");
|
||||||
|
if (override)
|
||||||
|
minimumMatchLength = override;
|
||||||
|
|
||||||
// Create top-level nodes.
|
// Create top-level nodes.
|
||||||
for (int i = 0; i < argc; ++i)
|
for (int i = 0; i < argc; ++i)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue