That's an intentional simplification of the select() method, which I don't expect will be used very often. replaceBeforeCursor() will just send the space key event in this case, and the cost is only some basic string iteration, so I think this is a good tradeoff.