Fixed STR sequence termination condition
authornoname <noname@inventati.org>
Sun, 5 Apr 2015 23:58:10 +0000 (23:58 +0000)
committerRoberto E. Vargas Caballero <k0ga@shike2.com>
Mon, 6 Apr 2015 08:52:47 +0000 (10:52 +0200)
ascii code may only be checked for characters that have length equal to
1, not width equal to 1

st.c

diff --git a/st.c b/st.c
index 39d3fee..827ed08 100644 (file)
--- a/st.c
+++ b/st.c
@@ -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))) {