ソースを参照

Ignore TAB in input prompt

master
Arun Prakash Jana 8年前
コミット
f1a27e21af
この署名に対応する既知のキーがデータベースに存在しません GPGキー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;


読み込み中…
キャンセル
保存