T61: the terminal logs each caret the input method asks for and each move of the caret; on the owner's Windows PC, WeType put the candidate box at the caret in 23 compositions, so the owner closed the jump a user found unreproduced

This commit is contained in:
ZacharyZhang-NY committed 2026-10-19 18:51:41 -04:00
1 parent 690d24f943
commit 0aee06dc27
6 files changed
+17 -2

No files matched your search

+5
View File
@@ -355,6 +355,11 @@ impl EntityInputHandler for TerminalView {
_: &mut Window,
_: &mut Context<Self>,
) -> Option<Bounds<Pixels>> {
log::debug!(
"terminal {}: the input method asks for the caret, {:?}",
self.pty.pid,
self.caret
);
Some(self.caret)
}
+5 -1
View File
@@ -54,7 +54,11 @@ pub fn grid(
if let Some((row, column)) = at {
let corner =
origin + point(cell.width * column as f32, cell.height * row as f32);
view.caret = Bounds::new(corner, cell);
let caret = Bounds::new(corner, cell);
if caret != view.caret {
log::trace!("terminal {}: the caret moves to {caret:?}", view.pty.pid);
view.caret = caret;
}
}
if view.fit(columns, lines, cx) {
cx.notify();