GtkEntryCompletion with inline selection behaves oddly on cursor move after insert letter
@ptomato
Submitted by Philip Chimento Link to original bug (#725362)
Description
Created attachment 270525 Minimal example
When using GtkEntryCompletion in inline-selection mode (see attached example), there is odd behavior when you move the cursor through the options, type a letter, then move the cursor again.
I'll try to illustrate the attached example with ascii art ;-) I'll use [___] to indicate the entry and parentheses to indicate selected or highlighted text.
Type "esp", the entry looks like this:
[esp___________]
espadrilles
espaliering
espieglerie
Press the down arrow to highlight "espadrilles", the entry looks like this:
[esp(adrilles)___]
(espadrilles)
espaliering
espieglerie
Now type "a" to narrow down the choices:
[espa_________]
espadrilles
espaliering
Now press the down arrow again:
[esp(aliering)___]
espadrilles
(espaliering)
Browsing through the list of completions selects the "a", and indeed if you type another letter to narrow down the choices even more, the entry will say "espl" instead of "espal". I think something is not getting reset when you type a letter in the entry, even though the filter model is getting updated.
It's also arguable that after you type a letter, you would expect to start browsing from the beginning of the list again, instead of where you left off in the previous list.
I would say the expected behavior would be this:
[espa(drilles)___]
(espadrilles)
espaliering
Attachment 270525, "Minimal example":
entrycompletion.py
Version: 3.22.x