From c71ec2ba07a791571509552d218dce38774428fa Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:21:07 -0300 Subject: draw: parameters nobody reads go (renderBody's prebuilt text, null at every call; paintPaneTag's capacity; renderHeaderLayer's and paintHeaders' arena), a pane tag's look-hover preview is painted once where it was painted twice over the same cells, the column grip's ink is inkOn's instead of a copy of its sum, boxBorder, inactiveDim, paintPaneTag and paintHeaders are draw's own, and animation's two switches with same-result arms keep one arm each Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/animation.zig | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/animation.zig') diff --git a/src/animation.zig b/src/animation.zig index 1738ba7d..ae116e27 100644 --- a/src/animation.zig +++ b/src/animation.zig @@ -211,9 +211,9 @@ pub const Track = extern struct { pub fn visualBox(track: Track) Box { return switch (track.effect) { .slide, .zoom, .vertical => track.presented(), - .off, .dissolve => track.to, - // Every character effect stays inside the pane's final rectangle. - .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => track.to, + // A fade, a dissolve and every character effect stay inside the + // pane's final rectangle. + .off, .dissolve, .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => track.to, }; } @@ -244,10 +244,9 @@ pub fn openingBox(effect: Transition, target: Box, screen_width: u16) Box { from.y += target.h; break :blk from; }, - .off, .dissolve => target, - // Character effects own the glyphs inside a fixed rectangle, so their - // panel opens at exactly its final geometry. - .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => target, + // A dissolve and the character effects own the glyphs inside a fixed + // rectangle, so their panel opens at exactly its final geometry. + .off, .dissolve, .ascii, .edges, .fall, .wave, .curtain, .scramble, .typewriter => target, }; } -- cgit v1.3