mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
A3t
- Uses rc.abbreviation.minimum for autocompletion.
This commit is contained in:
parent
704e85fcbc
commit
958848656a
1 changed files with 5 additions and 2 deletions
|
@ -43,8 +43,8 @@
|
|||
|
||||
extern Context context;
|
||||
|
||||
// TODO Tie this to rc.abbreviation.minimum.
|
||||
static const int minimumMatchLength = 3;
|
||||
// Overridden by rc.abbreviation.minimum.
|
||||
static int minimumMatchLength = 3;
|
||||
|
||||
// Alias expansion limit. Any more indicates some kind of error.
|
||||
const int safetyValveDefault = 10;
|
||||
|
@ -67,6 +67,9 @@ A3t::~A3t ()
|
|||
// char** argv --> std::vector <std::string> _args
|
||||
void A3t::initialize (int argc, const char** argv)
|
||||
{
|
||||
// Set up constants.
|
||||
minimumMatchLength = strtol (context.config.get ("abbreviation.minimum").c_str (), NULL, 10);
|
||||
|
||||
// Create top-level nodes.
|
||||
for (int i = 0; i < argc; ++i)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue