Fixed STR sequence termination condition - st - simple terminal (HTM) git clone https://git.parazyd.org/st (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 69d1fe06a97619e80872aaae2c4c97ced0540b67 (DIR) parent 288f80cb06b442ef0f55ea62bbceb3260338bf7a (HTM) Author: noname <noname@inventati.org> Date: Sun, 5 Apr 2015 23:58:10 +0000 Fixed STR sequence termination condition ascii code may only be checked for characters that have length equal to 1, not width equal to 1 Diffstat: M st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- (DIR) diff --git 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))) {