From 90873ef956252d461da34f2db0a325bb932a3f3c Mon Sep 17 00:00:00 2001
From: Yorhel <git@yorhel.nl>
Date: Wed, 6 Oct 2021 15:32:42 +0200
Subject: [PATCH] Fix defaults of scan_ui and --enable-* flags

Bit pointless to make these options nullable when you never assign null
to them.
---
 src/main.zig | 8 ++++----
 1 file 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;
-- 
GitLab