File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11# ABSTRACT: Per-terminal user locale information
22
3- use Text::MiscUtils::Layout;
43use Terminal::Widgets::I18N::Translation;
54
65constant ContentRenderer =
Original file line number Diff line number Diff line change 22
33use Terminal::LineEditor::DuospaceInput;
44use Terminal::LineEditor::RawTerminalInput;
5- use Text::MiscUtils::Layout;
65
76use Terminal::Widgets::Utils::Color;
87use Terminal::Widgets::Events;
Original file line number Diff line number Diff line change 11# ABSTRACT: A role that does span wrapping.
22
3- use Text::MiscUtils::Layout;
4-
53use Terminal::Widgets::SpanStyle;
64use Terminal::Widgets::SpanBuffer;
75use Terminal::Widgets::Focusable;
@@ -320,8 +318,9 @@ does Terminal::Widgets::SpanBuffer {
320318 }
321319
322320 method ! chars-fitting-in-width ($ text , $ width --> Int ) {
321+ my $ locale = $ . terminal . locale;
323322 my $ count = $ width ;
324- while duospace- width($ text . substr (0 , $ count )) > $ width {
323+ while $ locale . width($ text . substr (0 , $ count )) > $ width {
325324 $ count -- ;
326325 }
327326 $ count
You can’t perform that action at this time.
0 commit comments