Smart moving with wrapped lines