fix(lint): format using zig fmt
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 50s
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 50s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user