Ignore TAB in input prompt

This commit is contained in:
Arun Prakash Jana 2017-10-09 22:55:44 +05:30
parent 9638ed148d
commit f1a27e21af
No known key found for this signature in database
GPG key ID: A75979F35C080412

4
nnn.c
View 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;