浏览代码

Symlinks to dirs are recognized by color

master
Arun Prakash Jana 5 年前
父节点
当前提交
db83e95a37
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 2 个文件被更改,包括 1 次插入5 次删除
  1. +0
    -1
      README.md
  2. +1
    -4
      src/nnn.c

+ 0
- 1
README.md 查看文件

@@ -411,7 +411,6 @@ The following indicators are used in the detail view:
| <code>&#124;</code> | Fifo |
| `=` | Socket |
| `@` | Symbolic Link |
| `@/` | Symbolic Link to directory |
| `b` | Block Device |
| `c` | Character Device |
| `?` | Unknown |


+ 1
- 4
src/nnn.c 查看文件

@@ -2411,10 +2411,7 @@ static void printent_long(const struct entry *ent, int sel, uint namecols)
printw("%c%-16.16s %s / %s/\n", cp, timebuf, permbuf, pname);
break;
case S_IFLNK:
if (ent->flags & DIR_OR_LINK_TO_DIR)
printw("%c%-16.16s %s @/ %s@\n", cp, timebuf, permbuf, pname);
else
printw("%c%-16.16s %s @ %s@\n", cp, timebuf, permbuf, pname);
printw("%c%-16.16s %s @ %s@\n", cp, timebuf, permbuf, pname);
break;
case S_IFSOCK:
ind1 = ind2[0] = '='; // fallthrough


正在加载...
取消
保存