mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
update zf api
This commit is contained in:
@ -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| {
|
||||||
|
Reference in New Issue
Block a user