aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-09-13 23:21:40 +0200
committerChristoph Lohmann <20h@r-36.net>2012-09-13 23:21:40 +0200
commit30e167c45700474b7fb13c721d6887e4a8435dcc (patch)
tree1c8984858b401c145e0b5d01c7ecf81dec0ebfb1
parent184c38c88bb974740958ffc0e84d47a92133c5a3 (diff)
downloadst-30e167c45700474b7fb13c721d6887e4a8435dcc.tar.gz
st-30e167c45700474b7fb13c721d6887e4a8435dcc.tar.bz2
Ignore NUL character as a padding character. Telnet may use this. Patch of
Roberto Vargas.
-rw-r--r--st.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/st.c b/st.c
index c2ee3e2..da895c6 100644
--- a/st.c
+++ b/st.c
@@ -1723,6 +1723,8 @@ tputc(char *c) {
if(sel.bx != -1 && BETWEEN(term.c.y, sel.by, sel.ey))
sel.bx = -1;
switch(ascii) {
+ case '\0': /* padding character, do nothing */
+ break;
case '\t':
tputtab(1);
break;