Merge pull request #162 from forkgull/clonable-attrs

Derive Clone for AttrsList
This commit is contained in:
Jeremy Soller 2023-07-26 07:49:06 -06:00 committed by GitHub
commit bbebd312d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -206,7 +206,7 @@ impl AttrsOwned {
/// List of text attributes to apply to a line
//TODO: have this clean up the spans when changes are made
#[derive(Debug, Eq, PartialEq)]
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct AttrsList {
defaults: AttrsOwned,
spans: RangeMap<usize, AttrsOwned>,