瀏覽代碼

Revert "Handle multi-byte: 2 codepoints single column"

This reverts commit e8cf0dc663.
master
Arun Prakash Jana 7 年之前
父節點
當前提交
6b6182a61a
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      nnn.c

+ 3
- 3
nnn.c 查看文件

@@ -1024,9 +1024,9 @@ xreadline(char *fname)
cleartimeout(); cleartimeout();


while (1) { while (1) {
clearprompt(); buf[len] = ' ';
buf[len] = '\0';
mvaddnwstr(y, x, buf, len + 1); mvaddnwstr(y, x, buf, len + 1);
move(y, x + pos);


if ((r = get_wch(ch)) != ERR) { if ((r = get_wch(ch)) != ERR) {
if (r == OK) { if (r == OK) {
@@ -2606,7 +2606,7 @@ nochange:
/* Check if another file with same name exists */ /* Check if another file with same name exists */
if (faccessat(fd, tmp, F_OK, AT_SYMLINK_NOFOLLOW) != -1) { if (faccessat(fd, tmp, F_OK, AT_SYMLINK_NOFOLLOW) != -1) {
/* File with the same name exists */ /* File with the same name exists */
printprompt("Press 'y' to overwrite"); printprompt("Press 'y' to overwrite: ");
cleartimeout(); cleartimeout();
r = getch(); r = getch();
settimeout(); settimeout();


||||||
x
 
000:0
Loading…
取消
儲存