소스 검색

Show indicator with filename in bar

master
Arun Prakash Jana 8 년 전
부모
커밋
eb12354ce4
No known key found for this signature in database GPG 키 ID: A75979F35C080412
1개의 변경된 파일18개의 추가작업 그리고 1개의 파일을 삭제
  1. +18
    -1
      nnn.c

+ 18
- 1
nnn.c 파일 보기

@@ -641,7 +641,24 @@ redraw(char *path)

if (showdetail) {
if (ndents) {
sprintf(cwd, "%d items [%s]", ndents, dents[cur].name);
static char ind;
ind = '\0';

if (S_ISDIR(dents[cur].mode))
ind = '/';
else if (S_ISLNK(dents[cur].mode))
ind = '@';
else if (S_ISSOCK(dents[cur].mode))
ind = '=';
else if (S_ISFIFO(dents[cur].mode))
ind = '|';
else if (dents[cur].mode & S_IXUSR)
ind = '*';

ind
? sprintf(cwd, "%d items [%s%c]", ndents, dents[cur].name, ind)
: sprintf(cwd, "%d items [%s]", ndents, dents[cur].name);

printmsg(cwd);
} else
printmsg("0 items");


불러오는 중...
취소
저장