Ignore NUL character as a padding character. Telnet may use this. Patch of

Roberto Vargas.
This commit is contained in:
Christoph Lohmann 2012-09-13 23:21:40 +02:00
parent 776a022e39
commit b156352656

2
st.c
View file

@ -1723,6 +1723,8 @@ tputc(char *c) {
if(sel.bx != -1 && BETWEEN(term.c.y, sel.by, sel.ey)) if(sel.bx != -1 && BETWEEN(term.c.y, sel.by, sel.ey))
sel.bx = -1; sel.bx = -1;
switch(ascii) { switch(ascii) {
case '\0': /* padding character, do nothing */
break;
case '\t': case '\t':
tputtab(1); tputtab(1);
break; break;