[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.
On vacation till mid September and can't investigate without a PC.
[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
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
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