From b8878724788807b4a10ac4ca6da52ee55a0faad3 Mon Sep 17 00:00:00 2001 From: Gregory Schier Date: Sun, 12 Mar 2017 19:06:56 -0700 Subject: [PATCH] Autocomplete exact matches again (#117) * Fixed duplication kve bug * Autocomplete exact matches again --- .../codemirror/extensions/environments-autocomplete.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/app/ui/components/codemirror/extensions/environments-autocomplete.js b/app/ui/components/codemirror/extensions/environments-autocomplete.js index 258430238..06fcb7b01 100644 --- a/app/ui/components/codemirror/extensions/environments-autocomplete.js +++ b/app/ui/components/codemirror/extensions/environments-autocomplete.js @@ -278,11 +278,6 @@ function matchSegments (listOfThings, segment, type, limit = -1) { const matchSegment = segment.toLowerCase(); const matchName = name.toLowerCase(); - // Throw away exact matches (why would we want to complete those?) - if (matchName === matchSegment) { - continue; - } - // Throw away things that don't match if (!matchName.includes(matchSegment)) { continue;