Skip to content

Commit

Permalink
smaller indentation on subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
ravachol committed Nov 22, 2024
1 parent 88ff0a1 commit 4df7698
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/player.c
Original file line number Diff line number Diff line change
Expand Up @@ -1141,7 +1141,7 @@ int displayTree(FileSystemEntry *root, int depth, int maxListSize, int maxNameWi
printf(" ");

// If more than two levels deep add an extra indentation
extraIndent = (depth - 2 <= 0) ? 0 : depth;
extraIndent = (depth - 2 <= 0) ? 0 : depth - 2;

printBlankSpaces(indent + extraIndent);

Expand Down Expand Up @@ -1218,7 +1218,7 @@ int displayTree(FileSystemEntry *root, int depth, int maxListSize, int maxNameWi
{
filename[0] = '\0';
processName(root->name, filename, maxNameWidth - extraIndent);
printf(" └─%s \n", filename);
printf("└─%s \n", filename);

libSongIter++;
}
Expand Down

0 comments on commit 4df7698

Please sign in to comment.