mirror of
https://github.com/jarun/nnn.git
synced 2024-12-01 02:49:44 +00:00
Ignore TAB in input prompt
This commit is contained in:
parent
9638ed148d
commit
f1a27e21af
4
nnn.c
4
nnn.c
|
@ -1059,6 +1059,10 @@ xreadline(char *fname)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* TAB breaks cursor position, ignore it */
|
||||||
|
if (*ch == TAB || *ch == '\t')
|
||||||
|
continue;
|
||||||
|
|
||||||
if (pos < buflen) {
|
if (pos < buflen) {
|
||||||
memmove(buf + pos + 1, buf + pos, (len - pos) << 2);
|
memmove(buf + pos + 1, buf + pos, (len - pos) << 2);
|
||||||
buf[pos] = *ch;
|
buf[pos] = *ch;
|
||||||
|
|
Loading…
Reference in a new issue