nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit f1a27e21af2216457a5465b2e31d2f18c9b6c1bc
parent 9638ed148d30954147b5bc8c69949818af2d3c32
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Mon,  9 Oct 2017 22:55:44 +0530

Ignore TAB in input prompt

Diffstat:
Mnnn.c | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/nnn.c b/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;