From 3ac1a89c2587fd97e58900f1162fad21048b0577 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Wed, 4 Nov 2026 23:24:49 -0300 Subject: pardes: TAG_GAP goes, a knob with one value (0): TAG_TEXT_INSET is the gutter, the tag's zero-width gap fill and its two offsets in draw and mouse go, and the test blocks behind `TAG_GAP > 0` that could never run Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge --- src/mouse.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mouse.zig') diff --git a/src/mouse.zig b/src/mouse.zig index 32f7c716..b6650cc5 100644 --- a/src/mouse.zig +++ b/src/mouse.zig @@ -25,7 +25,6 @@ const MAX_PANES = pardes.MAX_PANES; const Layer = @import("Layer.zig"); const TOPBAR_H = pardes.TOPBAR_H; const BOX_H = pardes.BOX_H; -const TAG_GAP = pardes.TAG_GAP; const TAG_TEXT_INSET = pardes.TAG_TEXT_INSET; const Builtin = pardes.Builtin; const Mouse = pardes.Mouse; @@ -987,7 +986,7 @@ pub fn dragUpdate(p: *Pardes, mcol: u16, mrow: u16, body_hit: ?Mouse.BodyHit) vo 0 else @as(i32, @min(@max(mrow, body_y), body_y + body_h - 1)) - @as(i32, body_y) + tag_rows; - if (pane.sel[b].r1 < tag_rows) pane.sel[b].c1 += @as(i32, pane.tag_scroll) - TAG_GAP; + if (pane.sel[b].r1 < tag_rows) pane.sel[b].c1 += @as(i32, pane.tag_scroll); if (comptime pdf_enabled) panes.Pdf.pointerUpdate(&s.pdf, p, pane, mcol, mrow); } -- cgit v1.3