refactor: remove unused member in mainview
This commit is contained in:
parent
fb1d91585f
commit
054400ce3b
1 changed files with 2 additions and 3 deletions
|
@ -31,7 +31,6 @@ statusbar: *Widget,
|
||||||
editor: ?*ed.Editor = null,
|
editor: ?*ed.Editor = null,
|
||||||
panels: ?*WidgetList = null,
|
panels: ?*WidgetList = null,
|
||||||
last_match_text: ?[]const u8 = null,
|
last_match_text: ?[]const u8 = null,
|
||||||
logview_enabled: bool = false,
|
|
||||||
location_history: location_history,
|
location_history: location_history,
|
||||||
file_stack: std.ArrayList([]const u8),
|
file_stack: std.ArrayList([]const u8),
|
||||||
|
|
||||||
|
@ -267,11 +266,11 @@ const cmds = struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn toggle_logview(self: *Self, _: Ctx) Result {
|
pub fn toggle_logview(self: *Self, _: Ctx) Result {
|
||||||
self.logview_enabled = try self.toggle_panel_view(@import("logview.zig"), false);
|
_ = try self.toggle_panel_view(@import("logview.zig"), false);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn show_logview(self: *Self, _: Ctx) Result {
|
pub fn show_logview(self: *Self, _: Ctx) Result {
|
||||||
self.logview_enabled = try self.toggle_panel_view(@import("logview.zig"), true);
|
_ = try self.toggle_panel_view(@import("logview.zig"), true);
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn toggle_inputview(self: *Self, _: Ctx) Result {
|
pub fn toggle_inputview(self: *Self, _: Ctx) Result {
|
||||||
|
|
Loading…
Add table
Reference in a new issue