mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Revert "Handle multi-byte: 2 codepoints single column"
This reverts commit e8cf0dc663
.
This commit is contained in:
parent
e8cf0dc663
commit
6b6182a61a
6
nnn.c
6
nnn.c
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue