浏览代码

Skip erasing the complete screen

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

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

@@ -4871,8 +4871,9 @@ static void redraw(char *path)
return draw_line(path, ncols); return draw_line(path, ncols);
} }


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


/* Enforce scroll/cursor invariants */ /* Enforce scroll/cursor invariants */
move_cursor(cur, 1); move_cursor(cur, 1);
@@ -4934,11 +4935,11 @@ static void redraw(char *path)
} }
} }


attroff(A_UNDERLINE);

/* Go to first entry */ /* Go to first entry */
move(2, 0); move(2, 0);


attroff(A_UNDERLINE);

ncols = adjust_cols(ncols); ncols = adjust_cols(ncols);


attron(COLOR_PAIR(cfg.curctx + 1) | A_BOLD); attron(COLOR_PAIR(cfg.curctx + 1) | A_BOLD);
@@ -4954,6 +4955,9 @@ static void redraw(char *path)
cfg.dircolor = 0; cfg.dircolor = 0;
} }


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

statusbar(path); statusbar(path);
} }




||||||
x
 
000:0
正在加载...
取消
保存