浏览代码

Handle multi-byte: 2 codepoints single column

Very frequent with Devanagari scripts ('matra's)
master
Arun Prakash Jana 7 年前
父节点
当前提交
e8cf0dc663
找不到此签名对应的密钥 GPG 密钥 ID: A75979F35C080412
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      nnn.c

+ 3
- 3
nnn.c 查看文件

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

while (1) {
buf[len] = ' ';
clearprompt();
buf[len] = '\0';
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();


正在加载...
取消
保存