Expression

- Added configurable 'abbreviation.minimum' (default:2) setting to
  control how auto-completion works.
This commit is contained in:
Paul Beckingham 2011-07-20 10:48:59 -04:00
parent a6fadaee67
commit 197524a5fc
16 changed files with 139 additions and 52 deletions

View file

@ -482,7 +482,8 @@ void guess (
std::string& candidate)
{
std::vector <std::string> matches;
autoComplete (candidate, options, matches);
autoComplete (candidate, options, matches,
context.config.getInteger ("abbreviation.minimum"));
if (1 == matches.size ())
candidate = matches[0];