update zf api

This commit is contained in:
Mitchell Hashimoto
2024-11-12 19:15:20 -08:00
parent b26ff0a41b
commit bb60190630

View File

@ -289,9 +289,11 @@ const Preview = struct {
while (it.next()) |token| try tokens.append(token); while (it.next()) |token| try tokens.append(token);
for (self.themes, 0..) |*theme, i| { for (self.themes, 0..) |*theme, i| {
theme.rank = zf.rank(theme.theme, tokens.items, false, true); theme.rank = zf.rank(theme.theme, tokens.items, .{
if (theme.rank) |_| .to_lower = false,
try self.filtered.append(i); .plain = true,
});
if (theme.rank != null) try self.filtered.append(i);
} }
} else { } else {
for (self.themes, 0..) |*theme, i| { for (self.themes, 0..) |*theme, i| {