From 8ea8cdac6d7fe8aa06809bc2546968b704481fe8 Mon Sep 17 00:00:00 2001 From: attila Date: Tue, 3 Jun 2025 15:16:33 +0200 Subject: [PATCH] TextEditor: Allow soft breaks inside words in multi-line mode This restores the JUCE 7 behaviour. --- modules/juce_gui_basics/widgets/juce_TextEditor.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp index 5ef0bde335..2558ab8f1a 100644 --- a/modules/juce_gui_basics/widgets/juce_TextEditor.cpp +++ b/modules/juce_gui_basics/widgets/juce_TextEditor.cpp @@ -951,7 +951,8 @@ void TextEditor::updateBaseShapedTextOptions() .withLeading (lineSpacing); if (wordWrap) - options = options.withWordWrapWidth ((float) getMaximumTextWidth()); + options = options.withWordWrapWidth ((float) getMaximumTextWidth()) + .withAllowBreakingInsideWord(); else options = options.withAlignmentWidth ((float) getMaximumTextWidth());