diff options
| -rw-r--r-- | es.ini.in | 6 | ||||
| -rw-r--r-- | src/Config.zig | 4 |
2 files changed, 5 insertions, 5 deletions
| @@ -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 | ||
| 5 | line_limit = {[line_limit]} | 5 | line-limit = {[line_limit]} |
| 6 | page_overlap = {[page_overlap]} | 6 | page-overlap = {[page_overlap]} |
| 7 | tab_stop = {[tab_stop]} | 7 | tab-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 | } |