[scintilla:bugs] #2482 Autocomplete list in 5.5.6 (Windows)

0 views
Skip to first unread message

Sven

unread,
Jun 3, 2025, 11:49:48 AMJun 3
to scintill...@googlegroups.com

[bugs:#2482] Autocomplete list in 5.5.6 (Windows)

Status: open
Group: Bug
Created: Tue Jun 03, 2025 03:49 PM UTC by Sven
Last Updated: Tue Jun 03, 2025 03:49 PM UTC
Owner: nobody

There are two issues with the new autocompletion lists in 5.5.6.

1) ColourElement returns a wrong value when colour is RGB(0, 0, 0). The result is RGBA(0, 0, 0, 0), which results in an incorrect display.

Proposed fix:

if (colour.has_value()) {
// return colour.value();
  return ColourRGBA::FromRGB(colour.value().OpaqueRGB());

2) ListBoxX::AllocateBitMap() should use the ItemHeight() to initialize the bitmap. With the currently used lineHeight, the bitmap is smaller than the item, and using a custom background color results in unsightly dividers.

Proposed fix:

//  const SIZE extent { GetClientExtent().x, lineHeight };
    const SIZE extent { GetClientExtent().x, ItemHeight() };

Sent from sourceforge.net because scintill...@googlegroups.com is subscribed to https://sourceforge.net/p/scintilla/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/scintilla/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.

Zufu Liu

unread,
Jun 4, 2025, 6:09:53 AMJun 4
to scintill...@googlegroups.com
  • labels: --> Scintilla, win32, autocomplete

[bugs:#2482] Autocomplete list in 5.5.6 (Windows)

Status: open
Group: Bug
Labels: Scintilla win32 autocomplete

Neil Hodgson

unread,
Jun 11, 2025, 11:07:42 PMJun 11
to scintill...@googlegroups.com
  • status: open --> open-fixed
  • Comment:

Committed but with simpler expression for ColourElement.


[bugs:#2482] Autocomplete list in 5.5.6 (Windows)

Status: open-fixed


Group: Bug
Labels: Scintilla win32 autocomplete

Created: Tue Jun 03, 2025 03:49 PM UTC by Sven

Last Updated: Wed Jun 04, 2025 10:09 AM UTC
Owner: nobody

Sven

unread,
Jun 13, 2025, 3:52:07 AMJun 13
to scintill...@googlegroups.com

Much simpler. Thanks!


[bugs:#2482] Autocomplete list in 5.5.6 (Windows)

Status: open-fixed


Group: Bug
Labels: Scintilla win32 autocomplete

Created: Tue Jun 03, 2025 03:49 PM UTC by Sven

Last Updated: Thu Jun 12, 2025 03:07 AM UTC
Owner: nobody

Reply all
Reply to author
Forward
0 new messages