Derive Clone for AttrsList

This commit is contained in:
John Nunley 2023-07-24 22:13:34 -07:00
parent bd58940c42
commit 84b6a4e086
No known key found for this signature in database
GPG key ID: 42B2FA4582BB1EC9

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>,