mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
Position cursor in correct place for long names
This commit is contained in:
parent
8efcc24e0e
commit
473cd271b5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue