From 0b4329e50e6a107d470f447b262b13ef4f59a094 Mon Sep 17 00:00:00 2001 From: Mike Solar Date: Thu, 27 Aug 2026 19:08:41 +0800 Subject: [PATCH] timeline: I-beam cursor for the blade (razor) tool --- crates/gpui/src/timeline/timeline_view.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/crates/gpui/src/timeline/timeline_view.rs b/crates/gpui/src/timeline/timeline_view.rs index 4e8f64db88..941452ea02 100644 --- a/crates/gpui/src/timeline/timeline_view.rs +++ b/crates/gpui/src/timeline/timeline_view.rs @@ -1642,7 +1642,8 @@ impl Render for TimelineView { .size_full(), ); // The marquee (rubber-band) selection only exists on the select - // tool; the razor and zoom tools swap the area cursor to a + // tool; the razor tool swaps the area cursor to a vertical text + // (I-beam) cursor matching its blade, and the zoom tool to a // crosshair instead. if tool == TimelineTool::Select { clip_area = clip_area @@ -1658,7 +1659,10 @@ impl Render for TimelineView { this.finish_marquee(cx); })); } - if tool == TimelineTool::Razor || tool == TimelineTool::Zoom { + if tool == TimelineTool::Razor { + clip_area = clip_area.cursor_text(); + } + if tool == TimelineTool::Zoom { clip_area = clip_area.cursor_crosshair(); } let clip_area =