diff options
Diffstat (limited to 'core/draw.zig')
| -rw-r--r-- | core/draw.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/draw.zig b/core/draw.zig index 5263f7bf..ff76aa75 100644 --- a/core/draw.zig +++ b/core/draw.zig @@ -111,7 +111,8 @@ pub fn place(p: *Pardes, s: *Surface) void { // path, a generated text's revision with it (rows rewritten as its // view moved are another text's); none for a terminal or a picture. const doc: u64 = if (pane.file) |f| std.hash.Wyhash.hash(if (f.output != null) f.revision else 0, f.path) else 0; - s.addRegion(.{ .kind = .body, .owner = owner, .serial = pane.serial, .active = active, .line = line, .doc = doc, .rect = .{ .x = r.x + config.GUTTER, .y = body_y, .w = r.w - config.GUTTER, .h = body_h } }); + const row: u32 = if (pane.file != null) panes.File.top(p.settings.tab, pane).row else 0; + s.addRegion(.{ .kind = .body, .owner = owner, .serial = pane.serial, .active = active, .line = line, .row = row, .doc = doc, .rect = .{ .x = r.x + config.GUTTER, .y = body_y, .w = r.w - config.GUTTER, .h = body_h } }); var rail: Region = .{ .kind = .rail, .owner = owner, .serial = pane.serial, .active = active, .rect = .{ .x = r.x, .y = body_y, .w = config.GUTTER, .h = body_h } }; // A kind's rail is its paint's (drawPane); every other pane's is // here. |
