The current ScintillaBase::AutoCompleteCompleted which sends the SCN_AUTOCSELECTION depends on the created list box so can't be called from the SC_AC_SINGLE_CHOICE handler since it avoids creating a list box. So there would have to be some code reorganisation or duplication.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The current
ScintillaBase::AutoCompleteCompletedwhich sends theSCN_AUTOCSELECTIONdepends on the created list box so can't be called from theSC_AC_SINGLE_CHOICEhandler since it avoids creating a list box. So there would have to be some code reorganisation or duplication.