From 354e8ffb8201d5a5e1c5b7756c27e265e8b2d224 Mon Sep 17 00:00:00 2001 From: Pauline Middelink Date: Mon, 6 Mar 2017 02:49:15 +0100 Subject: [PATCH] Fix layout issue in cmd_snapshot "ascii art" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 └── --- src/cmds/restic/cmd_snapshots.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmds/restic/cmd_snapshots.go b/src/cmds/restic/cmd_snapshots.go index 5e3db0c5c..b6ef3bd2f 100644 --- a/src/cmds/restic/cmd_snapshots.go +++ b/src/cmds/restic/cmd_snapshots.go @@ -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 {