diff options
| author | 2017-08-26 02:42:33 +0530 | |
|---|---|---|
| committer | 2017-08-26 02:42:33 +0530 | |
| commit | 6b6182a61a016aaf230cb117dce58199f4e1ebda (patch) | |
| tree | a5a337fe79057a172b1cf86b34857389cc92b97f | |
| parent | e8cf0dc663436e2ac30f737a17d8cc91efbdd364 (diff) | |
| download | nnn-6b6182a61a016aaf230cb117dce58199f4e1ebda.tar.gz | |
Revert "Handle multi-byte: 2 codepoints single column"
This reverts commit e8cf0dc663436e2ac30f737a17d8cc91efbdd364.
| -rw-r--r-- | nnn.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1024,9 +1024,9 @@ xreadline(char *fname) cleartimeout(); while (1) { - clearprompt(); - buf[len] = '\0'; + buf[len] = ' '; mvaddnwstr(y, x, buf, len + 1); + move(y, x + pos); if ((r = get_wch(ch)) != ERR) { if (r == OK) { @@ -2606,7 +2606,7 @@ nochange: /* Check if another file with same name exists */ if (faccessat(fd, tmp, F_OK, AT_SYMLINK_NOFOLLOW) != -1) { /* File with the same name exists */ - printprompt("Press 'y' to overwrite"); + printprompt("Press 'y' to overwrite: "); cleartimeout(); r = getch(); settimeout(); |