From 03279e1daa1e5bad0619c5c691dd6d1f3392c121 Mon Sep 17 00:00:00 2001 From: Uko Kokņevičs Date: Tue, 28 Dec 2021 22:17:33 +0200 Subject: Fixed config bug --- src/Config.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Config.zig b/src/Config.zig index 900c2aa..16b4043 100644 --- a/src/Config.zig +++ b/src/Config.zig @@ -71,8 +71,8 @@ fn readConfigInBaseDir(allocator: Allocator, config: *Config, base_dir: []const config.line_limit = try std.fmt.parseUnsigned(usize, value, 0); } else if (std.mem.eql(u8, key, "page-overlap")) { config.page_overlap = try std.fmt.parseUnsigned(usize, value, 0); - } else if (std.mem.eql(u8, key, "line-limit")) { - config.line_limit = try std.fmt.parseUnsigned(usize, value, 0); + } else if (std.mem.eql(u8, key, "tab-stop")) { + config.tab_stop = try std.fmt.parseUnsigned(usize, value, 0); } // TODO: else ?? } -- cgit v1.2.3