diff --git a/src/util.cpp b/src/util.cpp index a61ac0fd5..58bbd9236 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -244,6 +244,8 @@ int autoComplete ( { foreach (item, list) { + // An exact match is a special case. Assume there is only one exact match + // and return immediately. if (partial == *item) { matches.clear ();