diff --git a/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp b/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp index 4f4c54e17..856075d15 100644 --- a/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp +++ b/PowerEditor/src/ScintillaComponent/AutoCompletion.cpp @@ -242,6 +242,9 @@ bool AutoCompletion::showApiAndWordComplete() } } + if (!wordArray.size()) + return false; + // Sort word array and convert it to a single string with space-separated words sort(wordArray.begin(), wordArray.end());