[hackers] [st] Fixed STR sequence termination condition || noname
commit 69d1fe06a97619e80872aaae2c4c97ced0540b67
Author: noname <noname_AT_inventati.org>
Date: Sun Apr 5 23:58:10 2015 +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
diff --git a/st.c b/st.c
index 39d3fee..827ed08 100644
--- a/st.c
+++ b/st.c
_AT_@ -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))) {
Received on Mon Apr 06 2015 - 18:30:18 CEST
This archive was generated by hypermail 2.3.0
: Mon Apr 06 2015 - 18:36:15 CEST