mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Ignore TAB in input prompt
This commit is contained in:
parent
9638ed148d
commit
f1a27e21af
1 changed files with 4 additions and 0 deletions
4
nnn.c
4
nnn.c
|
@ -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…
Add table
Reference in a new issue