docs(test): five adopters, four of them decorator families
The suite header still said "the four call sites", written before the selection painter joined `Viewport::visible_cols`. Four is now the count of decorator FAMILIES — syntax/LSP styling, diagnostic underlines, search washes, `BufferStyleOverlay` — and five is the count of adopters, selection being the fifth. Also points at where selection's own witnesses live, since a reader of this file would otherwise look for them here and find nothing: `paint_local_selection` is private, so they are in `src/editor.rs`. Comment only; no behavior and no assertion changed. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016bqGA6s9tTUFzYpbeW3tai
This commit is contained in:
parent
b29e94d29b
commit
3c9dc92962
|
|
@ -246,10 +246,15 @@ fn round_trip_is_identity_at_a_non_zero_offset() {
|
|||
// or vanished: decorations drifting off the characters they describe,
|
||||
// silently, and only once a window had been scrolled.
|
||||
//
|
||||
// `Viewport::visible_cols` is the one rule they now share. These
|
||||
// witnesses pin it from three directions, because the four call sites
|
||||
// were identical and a single test would have let a missed adopter
|
||||
// through.
|
||||
// `Viewport::visible_cols` is the one rule they now share, across FIVE
|
||||
// adopters: four decorator families — syntax/LSP styling, diagnostic
|
||||
// underlines, search washes, `BufferStyleOverlay` — plus the selection
|
||||
// painter, whose own witnesses live in `src/editor.rs` because
|
||||
// `paint_local_selection` is private.
|
||||
//
|
||||
// These witnesses pin the rule from three directions, because the
|
||||
// decorator sites were textually identical and a single test would have
|
||||
// let a missed adopter through.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
use std::sync::{Arc, Mutex};
|
||||
|
|
|
|||
Loading…
Reference in New Issue