fix #398 - Freeze when pressing space on empty auto-complete list

This commit is contained in:
Basile Burg 2019-01-11 21:54:26 +01:00
parent e0f9abb843
commit 5901c852e5
1 changed files with 5 additions and 0 deletions

View File

@ -2782,6 +2782,11 @@ begin
caretX := CaretX - 1;
getCompletionList();
caretX := CaretX + 1;
if fCompletion.TheForm.ItemList.Count = 0 then
begin
fCompletion.TheForm.Close;
exit;
end;
end;
if fCompletionMenuAutoClose and (fCompletion.CurrentString.length < 2) then
fCompletion.TheForm.Close;