fix #2054 Completer ignores better match if autoinsert is enabled
This commit is contained in:
parent
bb76c62c7b
commit
e8f7419131
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue