aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-23 17:52:42 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-06-23 17:52:42 +0530
commit65b818b0eb57bdf8e0fed9d95c663a70fb5afd1c (patch)
treeb3e14f84c2ff37fc543be79fc35c1e58096130df
parent156c08ccc4fb7f139e6fded44be9071c4adce7ad (diff)
downloadnnn-65b818b0eb57bdf8e0fed9d95c663a70fb5afd1c.tar.gz
Use refresh() to reflect print
-rw-r--r--nnn.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nnn.c b/nnn.c
index d77bc3f..fb178a0 100644
--- a/nnn.c
+++ b/nnn.c
@@ -608,8 +608,7 @@ entrycmp(const void *va, const void *vb)
static void
printmsg(char *msg)
{
- move(LINES - 1, 0);
- printw("%s\n", msg);
+ mvprintw(LINES - 1, 0, "%s\n", msg);
}
/* Display warning as a message */
@@ -1625,10 +1624,8 @@ populate(char *path, char *oldpath, char *fltr)
return -1;
if (cfg.blkorder) {
- timeout(0);
printmsg("Calculating...");
- getch();
- timeout(1000);
+ refresh();
}
ndents = dentfill(path, &dents, visible, &re);