fix: Compose where changes.compose(empty_other)
commitbfb6cff5a9b0ff5c37085086f895d3f14eaa5782
authorBlaž Hrastnik <blaz@mxxn.io>
dateMon 25 Oct 2021, 11:01 (5 years ago)
parentd4d16ca
helix-core/src/transaction.rs+3
@@ -132,6 +132,9 @@ impl ChangeSet {
132132 if self.changes.is_empty() {
133133 return other;
134134 }
135+ if other.changes.is_empty() {
136+ return self;
137+ }
135138
136139 let len = self.changes.len();
137140