mirror of https://gitlab.com/basile.b/dexed.git
fix #398 - Freeze when pressing space on empty auto-complete list
This commit is contained in:
parent
e0f9abb843
commit
5901c852e5
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue