sounds to me like it checks whether the cursor is at the end of the text/line. However then I don't understand why it returns true if we only got a single layout.