Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #780 from MikaelSmith/fix-ls-formatting
Browse files Browse the repository at this point in the history
Fix ls output for format change
  • Loading branch information
MikaelSmith committed Jun 17, 2020
2 parents aba5a09 + 04322da commit 0ff5bc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/ls.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ func formatItem(item lsItem, longFormat bool) [][]string {
return rows
}

// Pads a row to ensure the same number of columns.
// Note that the name is put at the beginning so directories are listed on the left.
func pad(str string, longFormat bool) []string {
if longFormat {
return []string{str, "", ""}
return []string{str, "", "", ""}
}
return []string{str}
}
Expand Down

0 comments on commit 0ff5bc1

Please sign in to comment.