Fix up merged PRs: table borders under a right-click select the table; the cell caret is drawn once

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Brandon Thomas
2026-10-14 14:43:36 -04:00
co-authored by Claude Opus 5.5
parent b3ec4013e6
commit 740a57ddba
2 changed files with 3 additions and 12 deletions
+3 -1
View File
@@ -1025,7 +1025,9 @@ impl Session {
| Hit::LineEnd { id, .. }
| Hit::Handle { id, .. }
| Hit::Vertex { id, .. }
| Hit::Frame { id },
| Hit::Frame { id }
| Hit::TableColumn { id, .. }
| Hit::TableRow { id, .. },
) => Some(*id),
None => None,
};
-11
View File
@@ -612,17 +612,6 @@ fn overlays(app: &mut SlideApp, ui: &Ui, painter: &egui::Painter, xf: Xf, t: &To
let pts = [Point::new(cr.x0, cr.y0), Point::new(cr.x1, cr.y0), Point::new(cr.x1, cr.y1), Point::new(cr.x0, cr.y1)]
.map(|q| xf.to_screen(f.affine * q));
poly(painter, pts, Stroke::new(2.0, t.accent));
// The composition is in the cell text; underline it where that text is drawn (#101).
for (a, b, thick) in deckcraft_engine::cmd::text::composition_underlines(st) {
painter.line_segment([xf.to_screen(a), xf.to_screen(b)], Stroke::new(if thick { 2.0 } else { 1.0 }, t.caret));
}
if !ts.is_range() {
let blink = (ui.input(|i| i.time) * 1.6).fract() < 0.6;
ui.ctx().request_repaint_after(std::time::Duration::from_millis(300));
if blink && let Some((top, bot)) = deckcraft_engine::cmd::text::caret_line(st, ts) {
painter.line_segment([xf.to_screen(top), xf.to_screen(bot)], Stroke::new(1.5, t.caret));
}
}
}
// Smart guides, marquee, previews.
for g in &app.session.tool.guides {