Fixed STR sequence termination condition

ascii code may only be checked for characters that have length equal to
1, not width equal to 1
This commit is contained in:
noname authored and Roberto E. Vargas Caballero committed 2015-04-06 10:52:47 +02:00
1 parent 288f80cb06
commit 69d1fe06a9
1 file changed
+1 -1
+1 -1
View File
@@ -2663,7 +2663,7 @@ tputc(char *c, int len) {
* character.
*/
if(term.esc & ESC_STR) {
if(width == 1 &&
if(len == 1 &&
(ascii == '\a' || ascii == 030 ||
ascii == 032 || ascii == 033 ||
ISCONTROLC1(unicodep))) {