From 8043fe488fef61499d5b1de8ed363bd5fd4282f1 Mon Sep 17 00:00:00 2001 From: Nevin <39220032+Nevin1901@users.noreply.github.com> Date: Sun, 2 Jan 2022 04:03:42 +0100 Subject: [PATCH] make sure completions isn't null --- lib/ace/autocomplete.js | 2 ++ 1 file changed, 2 insertions(+) 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++) {