From d8c872d8a2d483ab55521d2c71b79e69aa064aba Mon Sep 17 00:00:00 2001 From: Martin Date: Sun, 26 Jan 2025 00:39:14 +0100 Subject: [PATCH] IDE: SourceEditor, fix painting hint on completion drop down. Do not limit to width of dropdown, the hint is intentionally wider. (Currently use "ItemSelect" to detect if the paint may be for the hint) (cherry picked from commit 5aee1dc5de9faf4e1ce7b938630f82953d29ea3a) --- ide/sourceeditor.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 41608bfa8e..bc5e5c281a 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -2794,6 +2794,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