diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 15:00:10 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 15:05:16 -0300 |
| commit | e77e2b16927f1cd55fa2edde44bb591c6197b2c5 (patch) | |
| tree | b9939dcb959c3d50b3ffae8f953ae00217d6f8be /core/edit_cmd.zig | |
| parent | 98872935ca6ea4e602fd5bfc3948f9bbe77a3ba3 (diff) | |
| download | pardes-e77e2b16927f1cd55fa2edde44bb591c6197b2c5.tar.gz pardes-e77e2b16927f1cd55fa2edde44bb591c6197b2c5.zip | |
Band: an empty level gives no rows: Band.of drew a level's children and the child under its cursor's doc from `level[at]` with no child there when the level had none, so a band on a level whose children went while it was shown killed the session at its next frame (Z1's "not covered", the coordinator's addition: the user's rule, a session never dies of an input or an addon's fault); Z1's xxmkroru took away the one live way in (a Messages picker's Backspace unrolled `SPC h m`, a leaf's level), and an addon's group still is one: SPC unrolled on an addon's group (`SPC X` its words' first key, `X a` its word), the addon then gone (Addon.drop: its words with it), bindings.level finds no child there while Band.takes still gives the band its doc_rows; describe-key found on such a word, the addon gone, the same at the describe branch; RUN (TEST FIRST): Band.zig "an empty level gives no rows: SPC unrolled on an addon's group, or describe-key on its word, the addon gone, draws and takes keys" (the registry as Addon.take leaves it, `SPC X Down` drawn, the words dropped, drawn, Down Up Enter Backspace each drawn; then `SPC h k SPC X a` found, dropped, drawn, keys): fails on M11 with `index out of bounds: index 0, len 0` at Band.zig:216 (Band.of's level, from draw.zig's render), and with the level's fix alone at Band.zig:182 (its describe branch); THE FIX (Band.of): both branches add the level's step and its doc only when the level has a child, the band placed with no step otherwise (its rows blank until a key or Esc takes it away: levelKey already passes every key on a level with none, so Down, Up, Enter and Backspace never index it); a user could hit it by unloading or reloading an addon (its words changed) while SPC showed its group unrolled or describe-key showed its word; core-test 1106/1277 (171 skipped: M11's 1105 + this test), load 1.6 to 4.6
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'core/edit_cmd.zig')
0 files changed, 0 insertions, 0 deletions
