summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--es.ini.in6
-rw-r--r--src/Config.zig4
2 files changed, 5 insertions, 5 deletions
diff --git a/es.ini.in b/es.ini.in
index 4de9e2a..8b4e6c0 100644
--- a/es.ini.in
+++ b/es.ini.in
@@ -2,6 +2,6 @@
2# 2#
3# Copy this config to ~/.config/arkta/es/es.ini to modify it. 3# Copy this config to ~/.config/arkta/es/es.ini to modify it.
4 4
5line_limit = {[line_limit]} 5line-limit = {[line_limit]}
6page_overlap = {[page_overlap]} 6page-overlap = {[page_overlap]}
7tab_stop = {[tab_stop]} 7tab-stop = {[tab_stop]}
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
71 config.line_limit = try std.fmt.parseUnsigned(usize, value, 0); 71 config.line_limit = try std.fmt.parseUnsigned(usize, value, 0);
72 } else if (std.mem.eql(u8, key, "page-overlap")) { 72 } else if (std.mem.eql(u8, key, "page-overlap")) {
73 config.page_overlap = try std.fmt.parseUnsigned(usize, value, 0); 73 config.page_overlap = try std.fmt.parseUnsigned(usize, value, 0);
74 } else if (std.mem.eql(u8, key, "line-limit")) { 74 } else if (std.mem.eql(u8, key, "tab-stop")) {
75 config.line_limit = try std.fmt.parseUnsigned(usize, value, 0); 75 config.tab_stop = try std.fmt.parseUnsigned(usize, value, 0);
76 } 76 }
77 // TODO: else ?? 77 // TODO: else ??
78 } 78 }