diff options
author | Yorhel <git@yorhel.nl> | 2021-10-06 15:32:42 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-10-06 15:32:49 +0200 |
commit | 90873ef956252d461da34f2db0a325bb932a3f3c (patch) | |
tree | 8360b52974ea33bfa18b54cea8bab912c6b8f53e | |
parent | 8a23525cacad1ccc9a0f7d716f42576c5386f662 (diff) |
Fix defaults of scan_ui and --enable-* flags
Bit pointless to make these options nullable when you never assign null
to them.
-rw-r--r-- | src/main.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.zig b/src/main.zig index bf210dc..8482f86 100644 --- a/src/main.zig +++ b/src/main.zig @@ -50,7 +50,7 @@ pub const config = struct { pub var exclude_patterns: std.ArrayList([:0]const u8) = std.ArrayList([:0]const u8).init(allocator); pub var update_delay: u64 = 100*std.time.ns_per_ms; - pub var scan_ui: ?enum { none, line, full } = .full; + pub var scan_ui: ?enum { none, line, full } = null; pub var si: bool = false; pub var nc_tty: bool = false; pub var ui_color: enum { off, dark, darkbg } = .off; @@ -68,9 +68,9 @@ pub const config = struct { pub var sort_dirsfirst: bool = false; pub var imported: bool = false; - pub var can_delete: ?bool = true; - pub var can_shell: ?bool = true; - pub var can_refresh: ?bool = true; + pub var can_delete: ?bool = null; + pub var can_shell: ?bool = null; + pub var can_refresh: ?bool = null; pub var confirm_quit: bool = false; pub var confirm_delete: bool = true; pub var ignore_delete_errors: bool = false; |