Skip to content

Commit 342d5e5

Browse files
committed
Support GraphemeFill mode properly in WrappableBuffer
1 parent ed1394c commit 342d5e5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

lib/Terminal/Widgets/WrappableBuffer.rakumod

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,8 +407,14 @@ does Terminal::Widgets::SpanBuffer {
407407
# Attempt to backfill all short lines (except the last) in
408408
# order to create a mostly-rectangular block of graphemes
409409

410-
# XXXX: STUB, just hand back hard lines
411-
$hard
410+
# Run the standard core span loop for Grapheme modes
411+
# for each hard line in the LineGroup
412+
grapheme-span-loop($_) for @$hard;
413+
414+
# Add last partial line if any, ignoring a prefix-only line
415+
@wrapped.push(@partial) unless $just-finished;
416+
417+
@wrapped
412418
}
413419
when WordFill {
414420
# Attempt to backfill all short lines (except the last) with

0 commit comments

Comments
 (0)