It uses strrpos function to find the last space within the excerpt to avoid cutting a word when gets at the end of excerpt length. The problem is when the post length is less than excerpt, so the whole post is inside the excerpt.
English isn't my native language. Sorry for any mistakes you may find.