[dev] [st] Patch errors when adding st-scrollback-ringbuffer-0.9.2.diff then st-scrollback-reflow-0.9.2.diff on st 0.9.2

From: Connor Thomson <"Connor>
Date: Mon, 09 Nov 2026 01:18:04 +0000

I get errors from git patch when adding st-scrollback-ringbuffer-0.9.2.diff and then st-scrollback-reflow-0.9.2.diff on st 0.9.2

Here are the errors


st-scrollback-reflow-0.9.2.diff:1298: space before tab in indent.
        if (col > term.col) {
st-scrollback-reflow-0.9.2.diff:1299: space before tab in indent.
                bp = term.tabs + term.col;
st-scrollback-reflow-0.9.2.diff:1300: space before tab in indent.
                memset(bp, 0, sizeof(*term.tabs) * (col - term.col));
st-scrollback-reflow-0.9.2.diff:1301: space before tab in indent.
                while (--bp > term.tabs && !*bp)
st-scrollback-reflow-0.9.2.diff:1302: space before tab in indent.
                        /* nothing */ ;
error: patch failed: st.c:36
error: st.c: patch does not apply


And how I did everything


connor_at_dell:~$ git clone https://git.suckless.org/st
Cloning into 'st'...
remote: Enumerating objects: 4219, done.
remote: Counting objects: 100% (30/30), done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 4219 (delta 15), reused 0 (delta 0), pack-reused 4189 (from 1)
Receiving objects: 100% (4219/4219), 754.84 KiB | 423.00 KiB/s, done.
Resolving deltas: 100% (2968/2968), done.
connor_at_dell:~$ cd st
connor_at_dell:~/st$ git checkout 0.9.2
Note: switching to '0.9.2'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at d63b9eb bump version to 0.9.2
connor_at_dell:~/st$ wget https://st.suckless.org/patches/scrollback/st-scrollback-ringbuffer-0.9.2.diff
--2026-11-08 11:13:13-- https://st.suckless.org/patches/scrollback/st-scrollback-ringbuffer-0.9.2.diff
Resolving st.suckless.org (st.suckless.org)... 2a01:4f8:1c0c:706c::1, 195.201.112.86
Connecting to st.suckless.org (st.suckless.org)|2a01:4f8:1c0c:706c::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19559 (19K) [text/plain]
Saving to: ‘st-scrollback-ringbuffer-0.9.2.diff’

st-scrollback-ringbuffer-0.9.2.diff 100%[===========================================================================================================================================>] 19.10K --.-KB/s in 0s

2026-11-08 11:13:14 (366 MB/s) - ‘st-scrollback-ringbuffer-0.9.2.diff’ saved [19559/19559]

connor_at_dell:~/st$ git apply st-scrollback-ringbuffer-0.9.2.diff
connor_at_dell:~/st$ wget https://st.suckless.org/patches/scrollback/st-scrollback-reflow-0.9.2.diff
--2026-11-08 11:13:52-- https://st.suckless.org/patches/scrollback/st-scrollback-reflow-0.9.2.diff
Resolving st.suckless.org (st.suckless.org)... 2a01:4f8:1c0c:706c::1, 195.201.112.86
Connecting to st.suckless.org (st.suckless.org)|2a01:4f8:1c0c:706c::1|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43790 (43K) [text/plain]
Saving to: ‘st-scrollback-reflow-0.9.2.diff’

st-scrollback-reflow-0.9.2.diff 100%[===========================================================================================================================================>] 42.76K 124KB/s in 0.3s

2026-11-08 11:13:53 (124 KB/s) - ‘st-scrollback-reflow-0.9.2.diff’ saved [43790/43790]

connor_at_dell:~/st$ git apply st-scrollback-reflow-0.9.2.diff
st-scrollback-reflow-0.9.2.diff:1298: space before tab in indent.
        if (col > term.col) {
st-scrollback-reflow-0.9.2.diff:1299: space before tab in indent.
                bp = term.tabs + term.col;
st-scrollback-reflow-0.9.2.diff:1300: space before tab in indent.
                memset(bp, 0, sizeof(*term.tabs) * (col - term.col));
st-scrollback-reflow-0.9.2.diff:1301: space before tab in indent.
                while (--bp > term.tabs && !*bp)
st-scrollback-reflow-0.9.2.diff:1302: space before tab in indent.
                        /* nothing */ ;
error: patch failed: st.c:36
error: st.c: patch does not apply
connor_at_dell:~/st$


Connor Thomson <connor_at_gnufault.org> +1 (707) 640-8478
Received on Mon Nov 09 2026 - 02:18:04 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 09 2026 - 02:24:09 CET