mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 13:51:31 +00:00
Use refresh() to reflect print
This commit is contained in:
parent
156c08ccc4
commit
65b818b0eb
7
nnn.c
7
nnn.c
|
@ -608,8 +608,7 @@ entrycmp(const void *va, const void *vb)
|
||||||
static void
|
static void
|
||||||
printmsg(char *msg)
|
printmsg(char *msg)
|
||||||
{
|
{
|
||||||
move(LINES - 1, 0);
|
mvprintw(LINES - 1, 0, "%s\n", msg);
|
||||||
printw("%s\n", msg);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Display warning as a message */
|
/* Display warning as a message */
|
||||||
|
@ -1625,10 +1624,8 @@ populate(char *path, char *oldpath, char *fltr)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
if (cfg.blkorder) {
|
if (cfg.blkorder) {
|
||||||
timeout(0);
|
|
||||||
printmsg("Calculating...");
|
printmsg("Calculating...");
|
||||||
getch();
|
refresh();
|
||||||
timeout(1000);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ndents = dentfill(path, &dents, visible, &re);
|
ndents = dentfill(path, &dents, visible, &re);
|
||||||
|
|
Loading…
Reference in a new issue