Remove maximum length config options + don't localize config parse error

Signed-off-by: AnErrupTion <anerruption@disroot.org>
This commit is contained in:
AnErrupTion
2024-07-31 14:31:28 +02:00
parent 48f28e40c4
commit 548a411ae2
10 changed files with 38 additions and 44 deletions

View File

@@ -18,9 +18,9 @@ const Message = struct {
label: MessageLabel,
pub fn init(allocator: Allocator, buffer: *TerminalBuffer, max_length: usize) !InfoLine {
pub fn init(allocator: Allocator, buffer: *TerminalBuffer) InfoLine {
return .{
.label = try MessageLabel.init(allocator, buffer, max_length, drawItem),
.label = MessageLabel.init(allocator, buffer, drawItem),
};
}