fix(lint): format using zig fmt
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 50s

This commit is contained in:
2026-01-08 23:23:05 +01:00
parent 6d48af9fca
commit 0b34a432d1
2 changed files with 108 additions and 109 deletions

View File

@@ -83,7 +83,6 @@ pub fn Tree(App: type) type {
return .{ .x = width };
}
fn handle(ctx: *anyopaque, model: *App.Model, event: App.Event) !void {
const this: *@This() = @ptrCast(@alignCast(ctx));
switch (event) {
@@ -93,15 +92,15 @@ pub fn Tree(App: type) type {
this.idx = 0;
},
.key => |key| {
if (key.eql(.{ .cp = 'J' }) and this.idx < this.len - 1) {
this.idx += 1;
this.queue.push(.{ .file = this.idx });
}
if (key.eql(.{ .cp = 'J' }) and this.idx < this.len - 1) {
this.idx += 1;
this.queue.push(.{ .file = this.idx });
}
if (key.eql(.{ .cp = 'K' }) and this.idx > 0) {
this.idx -= 1;
this.queue.push(.{ .file = this.idx });
}
if (key.eql(.{ .cp = 'K' }) and this.idx > 0) {
this.idx -= 1;
this.queue.push(.{ .file = this.idx });
}
},
.mouse => |mouse| if (this.len > 0) switch (mouse.button) {
.left => if (mouse.y + this.scrollback < this.len) {