build: update isocline and remove top bar

Updates the isocline dependency to a newer commit and removes the
redundant top bar rule configuration in Terminal.zig.
This commit is contained in:
Adrià Arrufat
2026-06-08 16:55:29 +02:00
parent c087229b8a
commit a91eaecb1b
2 changed files with 5 additions and 10 deletions

View File

@@ -39,8 +39,8 @@
.hash = "zenai-0.0.0-iOY_VDVqBAA3mH3_90Lg7Vz3JK8oD0gIhcete_M9c1UC",
},
.isocline = .{
.url = "git+https://github.com/arrufat/isocline?ref=lightpanda#9967eedbf50059e939c87d139114f1358f5ee040",
.hash = "N-V-__8AAGl3EwD__Ic1Y1TQEdjcogemMskctz2Nff6BbCct",
.url = "git+https://github.com/arrufat/isocline?ref=lightpanda#40563a4aab5edf6ee4b3e58ecaee779d44ec88d3",
.hash = "N-V-__8AAMVuEwBXIAUi9A4H2luOLixx0zzSJvs5iXYzBGpW",
},
},
.paths = .{""},

View File

@@ -1097,8 +1097,8 @@ const right_sep = " · ";
/// Status bar below the input: a rule, then dimmed segments laid out flush-left
/// and flush-right. The content must never exceed the rule width or it wraps
/// onto a second row, which corrupts isocline's resize redraw and leaves stacked
/// rules behind — so segments are dropped lowest-rank first until it fits.
/// onto a second row, which reflows on resize and leaves a stray row behind — so
/// segments are dropped lowest-rank first until it fits.
/// isocline copies the string, so the temporary buffer is freed here.
fn writeStatusBar(self: *Terminal, segments: []const StatusSegment) void {
const a = self.allocator;
@@ -1107,16 +1107,11 @@ fn writeStatusBar(self: *Terminal, segments: []const StatusSegment) void {
var buf: std.ArrayList(u8) = .empty;
defer buf.deinit(a);
// a dim full-width rule, shared by both bars
// a dim full-width rule above the status segments
buf.appendSlice(a, "[faint]") catch return;
for (0..w) |_| buf.appendSlice(a, "") catch return;
buf.appendSlice(a, "[/]") catch return;
// top bar: just the rule
buf.append(a, 0) catch return;
c.ic_set_top_bar(buf.items.ptr);
_ = buf.pop(); // drop the terminator, keep the rule
// drop the lowest-rank segment until the content fits " " + left + right
std.debug.assert(segments.len <= max_segments);
var keep = [_]bool{true} ** max_segments;