Fixed word selection for multiline text (probably)