Fix FormattedTextControl.preferred_height() with wrap_lines=True
Fix FormattedTextControl.preferred_height() with wrap_lines=True

If line wrapping is enabled, we must calculate the height of each line to get
the height.

jonathanslenders/python-prompt-toolkit