summary refs log tree commit diff stats
path: root/widgets/account.go
diff options
context:
space:
mode:
authorReto Brunner <reto@labrat.space>2019-06-12 08:31:51 +0200
committerDrew DeVault <sir@cmpwn.com>2019-06-14 10:42:24 -0400
commit626f91c4832c097b7036d5063b2f0491397a9c70 (patch)
tree786310a326cf120e1d4f630fe8ce74405579a9bb /widgets/account.go
parentd3b5a76b4a8ad839991cb686711a0c0d24536d5e (diff)
downloadaerc-626f91c4832c097b7036d5063b2f0491397a9c70.tar.gz
imap: respect the folder config option
Diffstat (limited to 'widgets/account.go')
-rw-r--r--widgets/account.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/widgets/account.go b/widgets/account.go
index 72874b0..397cccd 100644
--- a/widgets/account.go
+++ b/widgets/account.go
@@ -141,7 +141,7 @@ func (acct *AccountView) connected(msg types.WorkerMessage) {
 					break
 				}
 			}
-			if dir == "" {
+			if dir == "" && len(dirs) > 0 {
 				dir = dirs[0]
 			}
 			acct.dirlist.Select(dir)