aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Jarry <robin@jarry.cc>2023-03-15 15:57:32 +0100
committerRobin Jarry <robin@jarry.cc>2023-03-15 16:22:24 +0100
commit6cd8441c0d23d04007020b9f5908c03db7138f69 (patch)
tree49d3c6e84be2f2adb10304af02fd9e5c16a9a7af
parent683b06105ef977e9361c359511457bc63d375705 (diff)
downloadaerc-6cd8441c0d23d04007020b9f5908c03db7138f69.tar.gz
config: fix default value of next-message-on-delete
The default value should be true as stated in the docs. Fixes: b63c93563c62 ("config: use reflection to map ini keys to struct fields") Reported-by: Kirill Chibisov <contact@kchibisov.com> Signed-off-by: Robin Jarry <robin@jarry.cc> Tested-by: Kirill Chibisov <contact@kchibisov.com>
-rw-r--r--config/ui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/ui.go b/config/ui.go
index 4b2a303a..c67502da 100644
--- a/config/ui.go
+++ b/config/ui.go
@@ -56,7 +56,7 @@ type UIConfig struct {
DirListTree bool `ini:"dirlist-tree"`
DirListCollapse int `ini:"dirlist-collapse"`
Sort []string `ini:"sort" delim:" "`
- NextMessageOnDelete bool `ini:"next-message-on-delete"`
+ NextMessageOnDelete bool `ini:"next-message-on-delete" default:"true"`
CompletionDelay time.Duration `ini:"completion-delay" default:"250ms"`
CompletionMinChars int `ini:"completion-min-chars" default:"1"`
CompletionPopovers bool `ini:"completion-popovers" default:"true"`