Ver código fonte

Ignore TAB in input prompt

master
Arun Prakash Jana 8 anos atrás
pai
commit
f1a27e21af
Nenhuma chave conhecida encontrada para esta assinatura no banco de dados ID da chave GPG: A75979F35C080412
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      nnn.c

+ 4
- 0
nnn.c Ver arquivo

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


Carregando…
Cancelar
Salvar