aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/nnn.c b/nnn.c
index 4921a7b..8fd177d 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1297,14 +1297,13 @@ static char *xreadline(char *fname, char *prompt)
}
END:
- buf[len] = '\0';
-
curs_set(FALSE);
settimeout();
+ clearprompt();
+ buf[len] = '\0';
DPRINTF_S(buf);
wcstombs(g_buf + ((NAME_MAX + 1) << 4), buf, NAME_MAX);
- clearprompt();
return g_buf + ((NAME_MAX + 1) << 4);
}