Ah, that's awkward. The reason that "works" is because `cursor_at_end?` is only called in the `elsif` after we've already confirmed that the cursor didn't fit in the first layout... Will give this a good revision and see how I can make it clearer.