STREscape: don't trim prematurely (d98c43)

This commit is contained in:
bakkeby 2020-03-24 14:22:09 +01:00
parent 5f311ddc78
commit 2da5aca965

2
st.c
View File

@ -2463,7 +2463,7 @@ tputc(Rune u)
if (term.esc&ESC_DCS && strescseq.len == 0 && u == 'q')
term.mode |= MODE_SIXEL;
if (strescseq.len+len >= sizeof(strescseq.buf)-1) {
if (strescseq.len+len >= sizeof(strescseq.buf)) {
/*
* Here is a bug in terminals. If the user never sends
* some code to stop the str or esc command, then st