nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 473cd271b547beba896e887fc99bbb2ba63dfe9a
parent 8efcc24e0e65ac36160daacf86d4acd77b3fe9e7
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Fri, 29 Oct 2021 21:27:02 +0530

Position cursor in correct place for long names

Diffstat:
Msrc/nnn.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -3486,7 +3486,7 @@ static char *xreadline(const char *prefill, const char *prompt) buf[len] = ' '; attron(COLOR_PAIR(cfg.curctx + 1)); if (pos > (size_t)(xcols - x)) { - mvaddnwstr(xlines - 1, x, buf + (pos - (xcols - x)), xcols - x); + mvaddnwstr(xlines - 1, x, buf + (pos - (xcols - x) + 1), xcols - x); move(xlines - 1, xcols - 1); } else { mvaddnwstr(xlines - 1, x, buf, len + 1);