Browse Source

Ignore TAB in input prompt

master
Arun Prakash Jana 7 years ago
parent
commit
f1a27e21af
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      nnn.c

+ 4
- 0
nnn.c View File

@@ -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…
Cancel
Save