瀏覽代碼

A more visible current dir

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

+ 4
- 4
nnn.c 查看文件

@@ -146,7 +146,6 @@ disabledbg()
#define TOUPPER(ch) \
(((ch) >= 'a' && (ch) <= 'z') ? ((ch) - 'a' + 'A') : (ch))
#define MAX_CMD_LEN 5120
#define CWD "DIR: "
#define CURSR " > "
#define EMPTY " "
#define CURSYM(flag) (flag ? CURSR : EMPTY)
@@ -2319,10 +2318,11 @@ redraw(char *path)
if (ncols > PATH_MAX)
ncols = PATH_MAX;

attron(A_REVERSE);
/* No text wrapping in cwd line */
/* Show CWD: - strlen(CWD) - 1 = 6 */
g_buf[ncols - 6] = '\0';
printw(CWD "%s\n\n", g_buf);
g_buf[ncols - 1] = '\0';
printw("%s\n\n", g_buf);
attroff(A_REVERSE);

/* Fallback to light mode if less than 35 columns */
if (ncols < 35 && cfg.showdetail) {


Loading…
取消
儲存