From bfb6cff5a9b0ff5c37085086f895d3f14eaa5782 Mon Sep 17 00:00:00 2001 From: Blaž Hrastnik Date: Mon, 25 Oct 2021 11:01:21 +0900 Subject: fix: Compose where changes.compose(empty_other) --- helix-core/src/transaction.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'helix-core/src') diff --git a/helix-core/src/transaction.rs b/helix-core/src/transaction.rs index d682f058..0e49fbe3 100644 --- a/helix-core/src/transaction.rs +++ b/helix-core/src/transaction.rs @@ -132,6 +132,9 @@ impl ChangeSet { if self.changes.is_empty() { return other; } + if other.changes.is_empty() { + return self; + } let len = self.changes.len(); -- cgit v1.2.3-70-g09d2