Sfoglia il codice sorgente

Ignore TAB in input prompt

master
Arun Prakash Jana 8 anni fa
parent
commit
f1a27e21af
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      nnn.c

+ 4
- 0
nnn.c Vedi File

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


Loading…
Annulla
Salva