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
1 changed files with 4 additions and 0 deletions

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;