diff --git a/lib/ace/autocomplete.js b/lib/ace/autocomplete.js index 13d140d9..0d7f37ca 100644 --- a/lib/ace/autocomplete.js +++ b/lib/ace/autocomplete.js @@ -297,7 +297,7 @@ var Autocomplete = function() { return detachIfFinished(); // Autoinsert if one result - if (this.autoInsert && filtered.length == 1) + if (this.autoInsert && filtered.length == 1 && results.finished) return this.insertMatch(filtered[0]); this.openPopup(this.editor, prefix, keepPopupPosition);