mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-09-22 13:01:05 +03:00
Separate TextLayout result into paragraphs with ShapedTextParagraph.
Change the `Text::wrapText` implementation to use the `LineWrap::computeLineBreaks` function, so it's consistent across eepp. Also renamed the function to `Text::hardWrapText` to be more descriptive. Added new-line support in `LineWrap::computeLineBreaks`.
This commit is contained in:
@@ -562,8 +562,8 @@ void GitPlugin::displayTooltip( UICodeEditor* editor, const Git::Blame& blame,
|
||||
blame.commitMessage.c_str() )
|
||||
: blame.error );
|
||||
|
||||
Text::wrapText( str, PixelDensity::dpToPx( 400 ), tooltip->getFontStyleConfig(),
|
||||
editor->getTabWidth() );
|
||||
Text::hardWrapText( str, PixelDensity::dpToPx( 400 ), tooltip->getFontStyleConfig(),
|
||||
editor->getTabWidth() );
|
||||
|
||||
editor->setTooltipText( str );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user