Skip to content

Commit

Permalink
make sure completions isn't null
Browse files Browse the repository at this point in the history
  • Loading branch information
nevinpuri committed Jan 2, 2022
1 parent 569c106 commit 8043fe4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ace/autocomplete.js
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 8043fe4

Please sign in to comment.