The repro is basically the same as in #689, but the fix in #802 does not fix this issue. Sometimes the cursor is placed at the start of the completed text, but sometimes it is placed at the start of the first menu item.