瀏覽代碼

Ignore TAB in input prompt

master
Arun Prakash Jana 7 年之前
父節點
當前提交
f1a27e21af
沒有發現已知的金鑰在資料庫的簽署中 GPG Key ID: A75979F35C080412
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      nnn.c

+ 4
- 0
nnn.c 查看文件

@@ -1059,6 +1059,10 @@ xreadline(char *fname)
continue;
}

/* TAB breaks cursor position, ignore it */
if (*ch == TAB || *ch == '\t')
continue;

if (pos < buflen) {
memmove(buf + pos + 1, buf + pos, (len - pos) << 2);
buf[pos] = *ch;


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