Compare commits
2 commits
203f05fef7
...
7c49138eac
| Author | SHA1 | Date | |
|---|---|---|---|
| 7c49138eac | |||
| 6c385bc35a |
2 changed files with 6 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ pub fn load_entries(palette: *Type) !usize {
|
||||||
.indicator = indicator,
|
.indicator = indicator,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
return if (palette.entries.items.len == 0) label.len else 4;
|
return if (palette.entries.items.len == 0) label.len + 3 else 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn clear_entries(palette: *Type) void {
|
pub fn clear_entries(palette: *Type) void {
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,11 @@ const cmds_ = struct {
|
||||||
}
|
}
|
||||||
pub const @"q!_meta": Meta = .{ .description = "q! (quit without saving)" };
|
pub const @"q!_meta": Meta = .{ .description = "q! (quit without saving)" };
|
||||||
|
|
||||||
|
pub fn @"qa!"(_: *void, _: Ctx) Result {
|
||||||
|
try cmd("quit_without_saving", .{});
|
||||||
|
}
|
||||||
|
pub const @"qa!_meta": Meta = .{ .description = "qa! (quit without saving anything)" };
|
||||||
|
|
||||||
pub fn wq(_: *void, _: Ctx) Result {
|
pub fn wq(_: *void, _: Ctx) Result {
|
||||||
try cmd("save_file", command.fmt(.{ "then", .{ "quit", .{} } }));
|
try cmd("save_file", command.fmt(.{ "then", .{ "quit", .{} } }));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue