HenriAugusto / completion-plugin

Completion for Pure Data
BSD 3-Clause "New" or "Revised" License
19 stars 1 forks source link

Parcial autocomplete might misbehave #28

Closed HenriAugusto closed 4 years ago

HenriAugusto commented 4 years ago

Before i describe how to reproduce it let me describe my environment.

Example:

Case A: Type "easy" in a box and only then Press F3. There are easygrid and easyflow options so they will appear

image

Everything happens as expected.

Case B: Type "easyf" in a box and only then Press F3. There is only the easyflow library that matches "easyf" so the pluging tries to already complete "easyflow" for you. But the problem is that it doesn't erase the "easyf" that you've already typed and you end with "easyfeasyflow".

image

HenriAugusto commented 4 years ago

Relevant code seems to be in

proc ::completion::try_common_prefix
proc ::completion::common_prefix`