refactor: improve capsulation and safety of tui module public api
This commit is contained in:
parent
4145460012
commit
1d947ab499
28 changed files with 239 additions and 198 deletions
|
|
@ -20,7 +20,7 @@ pub const Entry = struct {
|
|||
};
|
||||
|
||||
pub fn load_entries(palette: *Type) !usize {
|
||||
const hints = if (tui.current().input_mode) |m| m.keybind_hints else @panic("no keybind hints");
|
||||
const hints = if (tui.input_mode()) |m| m.keybind_hints else @panic("no keybind hints");
|
||||
var longest_hint: usize = 0;
|
||||
for (command.commands.items) |cmd_| if (cmd_) |p| {
|
||||
if (p.meta.description.len > 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue