Compare commits
No commits in common. "66a1764d6cf7e519e96e51889aaf942be1eb616d" and "e4aba729204c2c6a1fe0cd7f2cc6aeb89ce6ef71" have entirely different histories.
66a1764d6c
...
e4aba72920
2 changed files with 2 additions and 7 deletions
|
@ -93,10 +93,8 @@ pub fn addP(self: *Self, w_: Widget) !*Widget {
|
|||
}
|
||||
|
||||
pub fn remove(self: *Self, w: Widget) void {
|
||||
for (self.widgets.items, 0..) |p, i| if (p.widget.ptr == w.ptr) {
|
||||
for (self.widgets.items, 0..) |p, i| if (p.widget.ptr == w.ptr)
|
||||
self.widgets.orderedRemove(i).widget.deinit(self.allocator);
|
||||
return;
|
||||
};
|
||||
}
|
||||
|
||||
pub fn remove_all(self: *Self) void {
|
||||
|
|
|
@ -28,7 +28,6 @@ const home = @import("home.zig");
|
|||
const logview = @import("logview.zig");
|
||||
const filelist_view = @import("filelist_view.zig");
|
||||
const info_view = @import("info_view.zig");
|
||||
const input_view = @import("inputview.zig");
|
||||
|
||||
const Self = @This();
|
||||
const Commands = command.Collection(cmds);
|
||||
|
@ -515,8 +514,6 @@ const cmds = struct {
|
|||
try self.toggle_panel_view(info_view, false)
|
||||
else if (self.is_panel_view_showing(filelist_view))
|
||||
try self.toggle_panel_view(filelist_view, false)
|
||||
else if (self.is_panel_view_showing(input_view))
|
||||
try self.toggle_panel_view(input_view, false)
|
||||
else
|
||||
try self.toggle_panel_view(logview, false);
|
||||
}
|
||||
|
@ -533,7 +530,7 @@ const cmds = struct {
|
|||
pub const show_logview_meta = .{ .description = "View log" };
|
||||
|
||||
pub fn toggle_inputview(self: *Self, _: Ctx) Result {
|
||||
try self.toggle_panel_view(input_view, false);
|
||||
try self.toggle_panel_view(@import("inputview.zig"), false);
|
||||
}
|
||||
pub const toggle_inputview_meta = .{ .description = "Toggle raw input log" };
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue