Use cm.findWordAt() in selectWordAt()

For #8925.