diff --git a/lib/ace/autocomplete.js b/lib/ace/autocomplete.js index dde0afd04ab..3bbb8899689 100644 --- a/lib/ace/autocomplete.js +++ b/lib/ace/autocomplete.js @@ -179,6 +179,8 @@ var Autocomplete = function() { data.completer.insertMatch(this.editor, data); } else { // TODO add support for options.deleteSuffix + if (!completions) + return false; if (completions.filterText) { var ranges = this.editor.selection.getAllRanges(); for (var i = 0, range; range = ranges[i]; i++) {