summaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/config.zig b/src/config.zig
index 66b11c72..f0023193 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -2277,7 +2277,10 @@ const doc_typ = struct {
for (std.enums.values(Builtin)) |b| if (leader_path.get(b)) |p|
if (std.mem.eql(u8, p, path[0..n])) return true;
for (leader_args) |la| if (std.mem.eql(u8, la.path, path[0..n])) return true;
- return false;
+ // A word this build leaves out (Tty9p off Linux) keeps its leader in the other's.
+ var buf: [96]u8 = undefined;
+ const needle = std.fmt.bufPrint(&buf, "\"leader\": \"{s}\"", .{k}) catch return false;
+ return std.mem.indexOf(u8, other_build, needle) != null;
}
toks.reset();
while (toks.next()) |t| if (!bound(chord(t) orelse return false)) return false;