瀏覽代碼

Do a complete erase

master
Arun Prakash Jana 5 年之前
父節點
當前提交
4b5ecbe8fc
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: A75979F35C080412
共有 1 個檔案被更改,包括 4 行新增8 行删除
  1. +4
    -8
      src/nnn.c

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

@@ -4938,15 +4938,14 @@ static void redraw(char *path)

DPRINTF_S(__FUNCTION__);

/* Go to first line */
move(0, 0);
/* Clear screen */
erase();

/* Enforce scroll/cursor invariants */
move_cursor(cur, 1);

/* Fail redraw if < than 10 columns, context info prints 10 chars */
if (ncols < MIN_DISPLAY_COLS) {
clrtobot();
printmsg(messages[MSG_FEW_COLUMNS]);
return;
}
@@ -4998,8 +4997,8 @@ static void redraw(char *path)

attroff(A_UNDERLINE);

/* Clear everthing till first entry */
addstr("\n\n");
/* Go to first entry */
move(2, 0);

ncols = adjust_cols(ncols);

@@ -5016,9 +5015,6 @@ static void redraw(char *path)
cfg.dircolor = 0;
}

/* Clear from last entry to end */
clrtobot();

statusbar(path);
}



||||||
x
 
000:0
Loading…
取消
儲存