mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 03:41:27 +00:00
Show non matching guid in statusbar (#921)
This commit is contained in:
parent
9c218d41e8
commit
d5dac4c686
16
src/nnn.c
16
src/nnn.c
|
@ -5608,7 +5608,7 @@ static bool set_time_type(int *presel)
|
||||||
static void statusbar(char *path)
|
static void statusbar(char *path)
|
||||||
{
|
{
|
||||||
int i = 0, extnlen = 0;
|
int i = 0, extnlen = 0;
|
||||||
char *ptr;
|
char *ptr, guidbuf[5];
|
||||||
pEntry pent = &pdents[cur];
|
pEntry pent = &pdents[cur];
|
||||||
|
|
||||||
if (!ndents) {
|
if (!ndents) {
|
||||||
|
@ -5673,14 +5673,18 @@ static void statusbar(char *path)
|
||||||
|
|
||||||
if (pw)
|
if (pw)
|
||||||
addstr(pw->pw_name);
|
addstr(pw->pw_name);
|
||||||
else
|
else {
|
||||||
addch('-');
|
sprintf(guidbuf, "%d", pent->uid);
|
||||||
addch(' ');
|
addstr(guidbuf);
|
||||||
|
}
|
||||||
|
addch(':');
|
||||||
|
|
||||||
if (gr)
|
if (gr)
|
||||||
addstr(gr->gr_name);
|
addstr(gr->gr_name);
|
||||||
else
|
else {
|
||||||
addch('-');
|
sprintf(guidbuf, "%d", pent->gid);
|
||||||
|
addstr(guidbuf);
|
||||||
|
}
|
||||||
addch(' ');
|
addch(' ');
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue