Code editor: two measure comments fit ten words
CI / site (push) Successful in 26s
CI / crate (push) Failing after 3m24s
CI / platforms (windows-latest) (push) Successful in 4m47s
CI / platforms (ubuntu-24.04) (push) Canceled after 0s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
ZacharyZhang-NYandClaude Opus 5.5 committed 2026-10-15 14:19:39 -04:00
1 parent cd61653ff1
commit 4a8f940ea2
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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);
+1 -1
View File
@@ -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