From c301ae3567204666c914ba4b36336d3a91af0cd1 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 1 Jul 2026 11:15:30 -0300 Subject: changed some draggable styling --- tests.zig | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'tests.zig') diff --git a/tests.zig b/tests.zig index 1b4d6c24..9bb97f22 100644 --- a/tests.zig +++ b/tests.zig @@ -56,6 +56,14 @@ pub fn main(init: std.process.Init) !void { try hs.resize(30, 100); try hs.expectWaitFor("resizes=2", 8000, "SIGWINCH was not turned into a resize (counter stuck at 1)"); + // 2b. RECLAIMED GAP + HOVER HANDLE: no dead gap column between panes now — the + // resize handle is the LEFT pane's last column, and hovering it overlays a + // dash (keeping the cell's colors). 2 equal columns at 100 wide -> left width + // 50, last col = 49 (SGR 50). A no-button motion there paints the "╎". + try hs.send("\x1b[<35;50;10M"); // motion (no button) over the left pane's last col + try hs.pump(400); + try hs.expectContains("╎", "hovering the column boundary did not overlay the dashed resize handle"); + // 3. Default is NORMAL mode: the tag shows "nm" (helix-style block cursor). try hs.expectContains("nm /", "default tag is not 'nm' (normal mode not default)"); @@ -80,6 +88,23 @@ pub fn main(init: std.process.Init) !void { try hs.expectWaitFor("ZZTABRAN", 8000, "normal-mode Tab did not execute the word under the cursor"); try hs.pump(400); + // 3c-bis. CENTRAL DISPATCH: a builtin executes from a PANE BODY, not only the + // tagbar. Echo "Debug" as output (visible in normal mode), click it, TAB it: + // the same .debug action runs through the one dispatcher and toggles the + // overlay OFF (step 0 turned it on) -> "resizes=" disappears. Proves onSelect + // matches builtins wherever the word appears (tty here, not the tagbar). + try hs.send("\x02"); // normal -> tty + try hs.pump(400); + try hs.send("clear; echo Debug\r"); + try hs.pump(900); + try hs.send("\x02"); // tty -> normal + try hs.pump(400); + try hs.send("\x1b[<0;5;3M\x1b[<0;5;3m"); // left-click "Debug" on body row 0 (col 3=body 0; GUTTER 2) + try hs.pump(400); + try hs.send("\t"); // TAB: execute the builtin "Debug" + try hs.pump(600); + try hs.expectNotContains("resizes=", "executing 'Debug' from a pane body did not toggle the overlay (central dispatch broken)"); + // 3d. OUTPUT PADDING: a command composed (typed as an overlay) far below the // prompt runs BELOW where it was typed, not back up at the prompt. The app // pads the shell down with newlines to max(last-edit row, prompt row); the -- cgit v1.3