diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-10-09 22:55:44 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-10-09 22:55:44 +0530 |
commit | f1a27e21af2216457a5465b2e31d2f18c9b6c1bc (patch) | |
tree | c64cf34904dd6cb96d61d665098258a9ac9b5213 /nnn.c | |
parent | 9638ed148d30954147b5bc8c69949818af2d3c32 (diff) | |
download | nnn-f1a27e21af2216457a5465b2e31d2f18c9b6c1bc.tar.gz |
Ignore TAB in input prompt
Diffstat (limited to 'nnn.c')
-rw-r--r-- | nnn.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |