Position cursor in correct place for long names

This commit is contained in:
Arun Prakash Jana 2021-10-29 21:27:02 +05:30
parent 8efcc24e0e
commit 473cd271b5
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions

View File

@ -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);