This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Ignore TAB in input prompt
master
Arun Prakash Jana
7 years ago
parent
9638ed148d
commit
f1a27e21af
No known key found for this signature in database
GPG Key ID:
A75979F35C080412
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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;
Write
Preview
Loading…
Cancel
Save