diff options
author | inwit <inwit@sindominio.net> | 2023-10-29 23:45:55 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-11-02 11:59:39 +0100 |
commit | 9ce4af011c93e2816ce04012f6205b54e0ed1d51 (patch) | |
tree | d7bc32021b9e40bafd26f034d5b44ab7300e5e47 /worker/notmuch | |
parent | 2bf8fb42980ea981da34e104d8cfd0d1e3da788b (diff) | |
download | aerc-9ce4af011c93e2816ce04012f6205b54e0ed1d51.tar.gz |
fold: allow for multiple folding levels
Extend the :fold/:unfold behaviour to allow for multiple folding levels.
Signed-Off-By: inwit <inwit@sindominio.net>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'worker/notmuch')
-rw-r--r-- | worker/notmuch/lib/database.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/worker/notmuch/lib/database.go b/worker/notmuch/lib/database.go index 015126c2..b2a22227 100644 --- a/worker/notmuch/lib/database.go +++ b/worker/notmuch/lib/database.go @@ -336,7 +336,11 @@ func (db *DB) makeThread(parent *types.Thread, msgs *notmuch.Messages, threadCon case true: node.Context = !match default: - node.Hidden = !match + if match { + node.Hidden = 0 + } else { + node.Hidden = 1 + } } if parent != nil && parent.FirstChild == nil { parent.FirstChild = node |