From: Arun Prakash Jana Date: Mon, 9 Oct 2017 17:25:44 +0000 (+0530) Subject: Ignore TAB in input prompt X-Git-Tag: v1.6~53 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=f1a27e21af2216457a5465b2e31d2f18c9b6c1bc;p=nnn.git Ignore TAB in input prompt --- diff --git a/nnn.c b/nnn.c index 214eb62d..96125308 100644 --- 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;