Kaynağa Gözat

Ignore TAB in input prompt

master
Arun Prakash Jana 7 yıl önce
ebeveyn
işleme
f1a27e21af
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: A75979F35C080412
1 değiştirilmiş dosya ile 4 ekleme ve 0 silme
  1. +4
    -0
      nnn.c

+ 4
- 0
nnn.c Dosyayı Görüntüle

@@ -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;


Yükleniyor…
İptal
Kaydet