Modify inline_icon method to render at the cursor position
and perform a dry_run render of the Text::Formatted::Box to
determine the height of the box.
The y position is then moved down the height of the text box
(with line gap and leading if applicable).
Add spec to test for the correct inline icon render position (#24).
This PR fixes a bug reported in #24 that affects the render position of inline icons.
Here's the changes for the following code:
Before Fix:
After Fix:
Detailed Notes
inline_icon
method to render at the cursor position and perform adry_run
render of theText::Formatted::Box
to determine the height of the box.