all repos — st @ 69d1fe06a97619e80872aaae2c4c97ced0540b67

st (suckless terminal) config

Fixed STR sequence termination condition

ascii code may only be checked for characters that have length equal to
1, not width equal to 1
noname noname@inventati.org
commit

69d1fe06a97619e80872aaae2c4c97ced0540b67

parent

288f80cb06b442ef0f55ea62bbceb3260338bf7a

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M st.cst.c

@@ -2663,7 +2663,7 @@ * receives a ESC, a SUB, a ST or any other C1 control

* character. */ if(term.esc & ESC_STR) { - if(width == 1 && + if(len == 1 && (ascii == '\a' || ascii == 030 || ascii == 032 || ascii == 033 || ISCONTROLC1(unicodep))) {