aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/nnn.c b/nnn.c
index 214eb62..9612530 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;