Add AttrsList::spans_iter and use it in Buffer::append
This commit is contained in:
parent
caa214a755
commit
c751217020
2 changed files with 7 additions and 2 deletions
|
|
@ -144,7 +144,7 @@ impl BufferLine {
|
|||
.add_span(len..len + other.text().len(), other.attrs_list.defaults());
|
||||
}
|
||||
|
||||
for (other_range, attrs) in other.attrs_list.spans() {
|
||||
for (other_range, attrs) in other.attrs_list.spans_iter() {
|
||||
// Add previous attrs spans
|
||||
let range = other_range.start + len..other_range.end + len;
|
||||
self.attrs_list.add_span(range, attrs.as_attrs());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue