瀏覽代碼

Show size of file in bytes in status bar in du mode

master
Arun Prakash Jana 5 年之前
父節點
當前提交
ef8db1fd45
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A75979F35C080412
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      src/nnn.c

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

@@ -182,6 +182,7 @@

/* TYPE DEFINITIONS */
typedef unsigned long ulong;
typedef unsigned long long ull;
typedef unsigned int uint;
typedef unsigned char uchar;
typedef unsigned short ushort;
@@ -3928,9 +3929,10 @@ static void redraw(char *path)
xstrlcpy(buf, coolsize(dir_blocks << blk_shift), 12);
c = cfg.apparentsz ? 'a' : 'd';

mvprintw(lastln, 0, "%d/%d (%d) %cu:%s free:%s files:%lu %s",
mvprintw(lastln, 0, "%d/%d (%d) %cu:%s free:%s files:%lu %lluB %s",
cur + 1, ndents, nselected, c, buf,
coolsize(get_fs_info(path, FREE)), num_files, ptr);
coolsize(get_fs_info(path, FREE)), num_files,
(ull)(pent->blocks << blk_shift), ptr);
} else { /* light or detail mode */
/* Show filename as it may be truncated in directory listing */
/* Get the unescaped file name */


Loading…
取消
儲存