# HG changeset patch # User Mikael Berthe # Date 1494015647 -7200 # Node ID c72b15bec8d9574866ecf98b93eba6cf77b7fbca # Parent 43d43c8b53aafdd0d3dd69edc1f28060621b6ada Fix status context (sync with Madon 1.4.3) diff -r 43d43c8b53aa -r c72b15bec8d9 printer/plain.go --- a/printer/plain.go Thu May 04 21:19:12 2017 +0200 +++ b/printer/plain.go Fri May 05 22:20:47 2017 +0200 @@ -189,14 +189,14 @@ } func (p *PlainPrinter) plainPrintContext(c *madon.Context, w io.Writer, indent string) error { - indentedPrint(w, indent, true, false, "Context", "%d relative(s)", len(c.Ancestors)+len(c.Descendents)) + indentedPrint(w, indent, true, false, "Context", "%d relative(s)", len(c.Ancestors)+len(c.Descendants)) if len(c.Ancestors) > 0 { indentedPrint(w, indent, false, false, "Ancestors", "") p.PrintObj(c.Ancestors, w, indent+p.Indent) } - if len(c.Descendents) > 0 { - indentedPrint(w, indent, false, false, "Descendents", "") - p.PrintObj(c.Descendents, w, indent+p.Indent) + if len(c.Descendants) > 0 { + indentedPrint(w, indent, false, false, "Descendants", "") + p.PrintObj(c.Descendants, w, indent+p.Indent) } return nil }