[st][scrollback] Update for latest git

This commit is contained in:
bakkeby 2020-04-05 18:09:50 +02:00
parent 914cee019d
commit 56ff8cd7c7

10
st.c
View File

@ -1147,7 +1147,12 @@ tscrolldown(int orig, int n)
term.line[i-n] = temp; term.line[i-n] = temp;
} }
#if SCROLLBACK_PATCH
if (term.scr == 0)
selscroll(orig, n); selscroll(orig, n);
#else
selscroll(orig, n);
#endif // SCROLLBACK_PATCH
} }
void void
@ -1183,7 +1188,12 @@ tscrollup(int orig, int n)
term.line[i+n] = temp; term.line[i+n] = temp;
} }
#if SCROLLBACK_PATCH
if (term.scr == 0)
selscroll(orig, -n); selscroll(orig, -n);
#else
selscroll(orig, -n);
#endif // SCROLLBACK_PATCH
} }
void void