diff options
| author | noname <noname@inventati.org> | 2015-04-05 23:58:10 +0000 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2015-04-06 10:52:47 +0200 |
| commit | 69d1fe06a97619e80872aaae2c4c97ced0540b67 (patch) | |
| tree | cb86b33a54b1ea01b071010e0016b8b1b56b741f | |
| parent | 288f80cb06b442ef0f55ea62bbceb3260338bf7a (diff) | |
| download | st-69d1fe06a97619e80872aaae2c4c97ced0540b67.tar.gz st-69d1fe06a97619e80872aaae2c4c97ced0540b67.zip | |
Fixed STR sequence termination condition
ascii code may only be checked for characters that have length equal to
1, not width equal to 1
| -rw-r--r-- | st.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2663,7 +2663,7 @@ tputc(char *c, int len) { | |||
| 2663 | * character. | 2663 | * character. |
| 2664 | */ | 2664 | */ |
| 2665 | if(term.esc & ESC_STR) { | 2665 | if(term.esc & ESC_STR) { |
| 2666 | if(width == 1 && | 2666 | if(len == 1 && |
| 2667 | (ascii == '\a' || ascii == 030 || | 2667 | (ascii == '\a' || ascii == 030 || |
| 2668 | ascii == 032 || ascii == 033 || | 2668 | ascii == 032 || ascii == 033 || |
| 2669 | ISCONTROLC1(unicodep))) { | 2669 | ISCONTROLC1(unicodep))) { |
