diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 0ff748e570..3fac371cc2 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -2725,6 +2725,7 @@ begin Colors.TextSelectedColor := FActiveEditTextSelectedColor; Colors.TextHilightColor := FActiveEditTextHighLightColor; MaxX:=TheForm.ClientWidth; + if ItemSelected then MaxX := MaxInt; // Might be hint, then it has more space t:=CurrentCompletionType; if Manager.ActiveCompletionPlugin<>nil then begin