[scintilla:bugs] #2485 Conflict between SC_MULTIAUTOC_EACH and SCI_AUTOCSETDROPRESTOFWORD

1 view
Skip to first unread message

Jiri Techet

unread,
Jul 13, 2025, 4:45:42 PMJul 13
to scintill...@googlegroups.com

[bugs:#2485] Conflict between SC_MULTIAUTOC_EACH and SCI_AUTOCSETDROPRESTOFWORD

Status: open
Group: Bug
Created: Sun Jul 13, 2025 08:45 PM UTC by Jiri Techet
Last Updated: Sun Jul 13, 2025 08:45 PM UTC
Owner: nobody

There seems to be a problem when using SCI_AUTOCSETMULTI(SC_MULTIAUTOC_EACH) and SCI_AUTOCSETDROPRESTOFWORD(TRUE) leading to an unexpected autocompletion behavior with single caret. For more information, see https://github.com/geany/geany/issues/4373


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.

Neil Hodgson

unread,
Jul 16, 2025, 3:03:57 AMJul 16
to scintill...@googlegroups.com

On vacation till mid September and can't investigate without a PC.

Zufu Liu

unread,
Jul 16, 2025, 7:50:32 AMJul 16
to scintill...@googlegroups.com
  • labels: --> Scintilla, autocomplete

[bugs:#2485] Conflict between SC_MULTIAUTOC_EACH and SCI_AUTOCSETDROPRESTOFWORD

Status: open
Group: Bug
Labels: Scintilla autocomplete

Created: Sun Jul 13, 2025 08:45 PM UTC by Jiri Techet

Last Updated: Wed Jul 16, 2025 07:03 AM UTC
Owner: nobody

Martijn Laan

unread,
Aug 4, 2025, 10:28:07 AMAug 4
to scintill...@googlegroups.com

See https://sourceforge.net/p/scintilla/bugs/2445/ which is about the same problem (even though the title says MULTIPASTE), and has some more info.


[bugs:#2485] Conflict between SC_MULTIAUTOC_EACH and SCI_AUTOCSETDROPRESTOFWORD

Status: open
Group: Bug
Labels: Scintilla autocomplete

Created: Sun Jul 13, 2025 08:45 PM UTC by Jiri Techet

Last Updated: Wed Jul 16, 2025 11:50 AM UTC
Owner: nobody

Neil Hodgson

unread,
Sep 27, 2025, 9:00:36 PMSep 27
to scintill...@googlegroups.com

SC_MULTIAUTOC_EACH was a contribution from Mitchell Foral and was likely only designed for some circumstances. Fixing this does not appear simple to me so I'll likely not attempt to do so myself.

There are multiple sub-problems here. "Drop rest of word" needs to know how long the word is at each selection but only determines the word end and thus word length at the primary selection. Could pass the option through to AutoCompleteInsert and calculate for each selection. Secondly, the first argument to AutoCompleteInsert isn't the selection position but offset from it by the start length (commonly number of characters in word before caret) so each selection should offset by this amount but there will be further problems if different words or positions within words are selected.

There are 3 calls to AutoCompleteInsert - the common case inside AutoCompleteCompleted and 2 more for automatic choice when list only contains one choice. Any change should also work for 'choose single'.

An ugly fix for just the reported problem is to coerce multiAutoCMode to Once when there is only one selection.


[bugs:#2485] Conflict between SC_MULTIAUTOC_EACH and SCI_AUTOCSETDROPRESTOFWORD

Status: open
Group: Bug
Labels: Scintilla autocomplete

Created: Sun Jul 13, 2025 08:45 PM UTC by Jiri Techet

Last Updated: Mon Aug 04, 2025 02:27 PM UTC
Owner: nobody

Reply all
Reply to author
Forward
0 new messages