From: Arun Prakash Jana Date: Sat, 1 Aug 2020 19:24:07 +0000 (+0530) Subject: Avoid redundant printw() call for order X-Git-Tag: v3.4~51 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=110a4eb108586fb1e2c3e05e17bd0e9f5fbf9b42;p=nnn.git Avoid redundant printw() call for order --- diff --git a/src/nnn.c b/src/nnn.c index 08327a21..b6557399 100644 --- a/src/nnn.c +++ b/src/nnn.c @@ -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);