From 958848656ad6af1752bd938df66af9f3c1569ae1 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 24 May 2014 10:56:41 -0400 Subject: [PATCH] A3t - Uses rc.abbreviation.minimum for autocompletion. --- src/A3t.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/A3t.cpp b/src/A3t.cpp index e87b2b5ef..3f724065f 100644 --- a/src/A3t.cpp +++ b/src/A3t.cpp @@ -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 _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) {