Fix layout issue in cmd_snapshot "ascii art"

The layouter does not account for multi tags when determining the
need for ascii art.

36fd8178  2017-03-03 21:35:04  abuseio.polyware.nl    NL          /
                                                      A       └──

vs

36fd8178  2017-03-03 21:35:04  abuseio.polyware.nl    NL      ┌── /
                                                      A       └──
This commit is contained in:
Pauline Middelink 2017-03-06 02:49:15 +01:00
parent d50dc9f649
commit 354e8ffb82
1 changed files with 3 additions and 0 deletions

View File

@ -127,6 +127,9 @@ func printSnapshotsReadable(stdout io.Writer, list []*restic.Snapshot) {
}
rows := len(sn.Paths)
if rows < len(sn.Tags) {
rows = len(sn.Tags)
}
treeElement := " "
if rows != 1 {