From 681ebbeea219673d4778420026b448fcb1fccdcf Mon Sep 17 00:00:00 2001 From: Martin Ball Date: Wed, 18 Nov 2026 14:05:42 +0000 Subject: [PATCH] canvas-w2: the IME target epoch is egui ImeTarget::replacement_epoch --- crates/ui-contract/src/runtime/ime.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-contract/src/runtime/ime.rs b/crates/ui-contract/src/runtime/ime.rs index d8dda08b0..85361704a 100644 --- a/crates/ui-contract/src/runtime/ime.rs +++ b/crates/ui-contract/src/runtime/ime.rs @@ -103,7 +103,7 @@ impl Engine { let password = password.unwrap_or(kept); let report = self.editor.as_mut().filter(|facts| facts.owner == owner).and_then(|facts| facts.surrounding.take()); // Only a report moves the epoch: an owner that reports nothing this pass stays the same target. - let kept_epoch = self.observed.map(|(target, _)| target).filter(|target| target.owner == owner).map_or(0, |target| target.epoch); + let kept_epoch = self.observed.map(|(target, _)| target).filter(|target| target.owner == owner).map_or(0, |target| target.replacement_epoch); let target = ImeTarget::new(owner, report.as_ref().map_or(kept_epoch, |report| report.epoch)); let purpose = if password { IMEPurpose::Password } else { IMEPurpose::Normal }; let mut observation = ImeObservation::new(frame_nr, pass_nr, target).purpose(purpose);