File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ does Terminal::Widgets::SpanBuffer {
100100
101101 # Make sure all LineGroups have wrapped lines cached,
102102 # then set y-max equal to total of all wrapped lines
103- % ! wrapped-lines {. id} = self . wrap-lines(. id) for @ ! line-groups ;
103+ % ! wrapped-lines {. id} // = self . wrap-lines(. id) for @ ! line-groups ;
104104 self . set-y-max(% ! wrapped-lines . values . map (*. elems ). sum );
105105 }
106106 }
@@ -112,7 +112,7 @@ does Terminal::Widgets::SpanBuffer {
112112 # | at a given $pos, defaulting to appending at the end
113113 multi method insert-line-group (TextContent: D $ content ,
114114 UInt : D $ pos = @ ! line-groups . elems ) {
115- self . add -line-group(Terminal::Widgets::LineGroup. new (: $ content ), $ pos )
115+ self . insert -line-group(Terminal::Widgets::LineGroup. new (: $ content ), $ pos )
116116 }
117117
118118 # | Insert a single LineGroup into the buffer at a given $pos, defaulting
You can’t perform that action at this time.
0 commit comments