aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/dirlist.go
diff options
context:
space:
mode:
authorKoni Marti <koni.marti@gmail.com>2023-06-26 10:17:20 +0200
committerRobin Jarry <robin@jarry.cc>2023-06-26 10:53:57 +0200
commitdfabb5232875663884d35f7d69b752f0b56ad64b (patch)
tree2363951318234842e1a0a289b13874c62e3b9bb9 /widgets/dirlist.go
parent9cbfb190f65eba73e42b034a39de4b4d35fd404c (diff)
downloadaerc-dfabb5232875663884d35f7d69b752f0b56ad64b.tar.gz
account: remember folder/message when reconnecting
Remember selected folder and message when reconnecting. This is mostly useful for the imap backend when logouts or reconnects happen a lot. Fixes: https://todo.sr.ht/~rjarry/aerc/159 Signed-off-by: Koni Marti <koni.marti@gmail.com> Acked-by: Robin Jarry <robin@jarry.cc> Tested-by: inwit <inwit@sindominio.net>
Diffstat (limited to 'widgets/dirlist.go')
-rw-r--r--widgets/dirlist.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/widgets/dirlist.go b/widgets/dirlist.go
index 788e197f..7d427dcc 100644
--- a/widgets/dirlist.go
+++ b/widgets/dirlist.go
@@ -169,7 +169,6 @@ func (dirlist *DirectoryList) Select(name string) {
switch msg.(type) {
case *types.Error:
dirlist.selecting = ""
- dirlist.selected = ""
case *types.Done:
dirlist.selected = dirlist.selecting
dirlist.filterDirsByFoldersConfig()