Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
STREscape: don't trim prematurely
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
a8f8232
..
50226d1
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-2330,7
+2330,7
@@
tputc(Rune u)
if (term.esc&ESC_DCS && strescseq.len == 0 && u == 'q')
term.mode |= MODE_SIXEL;
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
/*
* Here is a bug in terminals. If the user never sends
* some code to stop the str or esc command, then st