From 4a8f940ea2112414a348abf0bee4483388eff3f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=B7=E7=94=B5=E8=8A=BD=E8=A1=A3?= Date: Thu, 15 Oct 2026 14:19:39 -0400 Subject: [PATCH] Code editor: two measure comments fit ten words Co-Authored-By: Claude Opus 5.5 (1M context) --- src/editor/line.rs | 2 +- src/editor/measure.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/editor/line.rs b/src/editor/line.rs index f0b7d1a..0382287 100644 --- a/src/editor/line.rs +++ b/src/editor/line.rs @@ -172,7 +172,7 @@ impl CodeEditor { advance, window, ); - // Text sits where laid out; rulers and guides on the grid. + // Text where laid out; rulers and guides on grid. let x = |column: usize| advance + measured.x(column); let grid = |column: usize| advance * (column + 1) as f32; let focused = self.focus.is_focused(window); diff --git a/src/editor/measure.rs b/src/editor/measure.rs index ad6837a..94597b6 100644 --- a/src/editor/measure.rs +++ b/src/editor/measure.rs @@ -68,7 +68,7 @@ impl Measured { } } - /// The column whose start lies nearest `x`, line end included. + /// The column starting nearest `x`, line end included. pub fn column(&self, x: Pixels) -> usize { let starts = self.layout.runs.iter().flat_map(|run| { run.glyphs