- Hooked up the parser to rc.abbreviation.minimum.
This commit is contained in:
Paul Beckingham 2014-11-08 13:41:19 -05:00
parent 2797541b8d
commit 11d210a7c7
3 changed files with 6 additions and 1 deletions

View file

@ -40,7 +40,7 @@
extern Context context; extern Context context;
// Overridden by rc.abbreviation.minimum. // Overridden by rc.abbreviation.minimum.
static int minimumMatchLength = 3; int CLI::minimumMatchLength = 3;
// Alias expansion limit. Any more indicates some kind of error. // Alias expansion limit. Any more indicates some kind of error.
static int safetyValveDefault = 10; static int safetyValveDefault = 10;

View file

@ -63,6 +63,9 @@ public:
// Represents the command line. // Represents the command line.
class CLI class CLI
{ {
public:
static int minimumMatchLength;
public: public:
CLI (); CLI ();
~CLI (); ~CLI ();

View file

@ -584,6 +584,8 @@ void Context::getLimits (int& rows, int& lines)
// easier, it has been decoupled from Context. // easier, it has been decoupled from Context.
void Context::staticInitialization () void Context::staticInitialization ()
{ {
CLI::minimumMatchLength = config.getInteger ("abbreviation.minimum");
Task::defaultProject = config.get ("default.project"); Task::defaultProject = config.get ("default.project");
Task::defaultPriority = config.get ("default.priority"); Task::defaultPriority = config.get ("default.priority");
Task::defaultDue = config.get ("default.due"); Task::defaultDue = config.get ("default.due");