summaryrefslogtreecommitdiff
path: root/src/body_layer.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-10-25 10:55:04 -0300
committerGabriel Schneider <[email protected]>2026-10-25 11:58:11 -0300
commit4122224f07735a90dac8f2037f14b7d44b259fce (patch)
tree02138a57dcb6580fb3038db9c15b89ca88e07d6f /src/body_layer.zig
parentb8646ef838e4f33f1f3adbf3c08c251afc39ae73 (diff)
downloadpardes-4122224f07735a90dac8f2037f14b7d44b259fce.tar.gz
pardes-4122224f07735a90dac8f2037f14b7d44b259fce.zip
query: the current row's mark is its own: a row tint the width of the body drawn from Query.current before the row's colours (Query.paintMark, so its match's tint, the places and any selection draw over it), not the pane's line selection; a click, a sweep or a chord never erases it and B2/B3 never borrow it (the operandAt exception goes); fsearch, lookrange, lsprelpath, stepgrain goldens: the current row now marked under its match tint, while typing too
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016u3hBPFfja5pK4EBRC1UVD
Diffstat (limited to 'src/body_layer.zig')
-rw-r--r--src/body_layer.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/body_layer.zig b/src/body_layer.zig
index d4ca6d69..bfca268a 100644
--- a/src/body_layer.zig
+++ b/src/body_layer.zig
@@ -286,6 +286,7 @@ pub fn renderBody(p: *Pardes, s: *Surface, arena: std.mem.Allocator, pane: *Pane
// File layout is independent of whether its producer requests colors.
if (pane.file) |*f| {
panes.File.drawGutter(p, s, pane, r, tx, tw, body_h, active);
+ panes.Query.paintMark(p, s, pane, r, body_h);
if (p.settings.colors and pane.colorAlgo() != .none)
panes.File.recolorSyntax(p, s, pane, f, r, tx, tw, body_h);
panes.Tables.paint(p, s, pane, r, tx, tw, body_h);