diff options
-rw-r--r-- | widgets/msglist.go | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/widgets/msglist.go b/widgets/msglist.go index d1bba32f..1fc33279 100644 --- a/widgets/msglist.go +++ b/widgets/msglist.go @@ -444,10 +444,15 @@ func threadPrefix(t *types.Thread, reverse bool, point bool) string { } var prefix []string for n := t; n.Parent != nil; n = n.Parent { - if n.Parent.NextSibling != nil { + switch { + case n.Parent.NextSibling != nil && point: prefix = append(prefix, "│ ") - } else { + case n.Parent.NextSibling != nil: + prefix = append(prefix, "│ ") + case point: prefix = append(prefix, " ") + default: + prefix = append(prefix, " ") } } // prefix is now in a reverse order (inside --> outside), so turn it |