Avoid redundant printw() call for order

This commit is contained in:
Arun Prakash Jana 2020-08-02 00:54:07 +05:30
parent 9bad3c9399
commit 110a4eb108
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 2 additions and 3 deletions

View File

@ -5188,9 +5188,8 @@ static void statusbar(char *path)
} else { /* light or detail mode */
char sort[] = "\0\0\0\0\0";
getorderstr(sort);
printw("%s", sort);
if (getorderstr(sort))
printw("%s", sort);
/* Timestamp */
print_time(&pent->t);