summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiden Gall <aiden@aidengall.xyz>2023-11-20 23:19:40 +0000
committerAiden Gall <aiden@aidengall.xyz>2023-11-20 23:19:40 +0000
commit657de4a361d65fd8e4832ef65be280264a7f7a02 (patch)
tree60a560b5fa17bf37e31ca262e399e3c28439eaaa
parent7786188a45318f1bcac232d1615ffb8103c80677 (diff)
stop cursor drawing while scrolling
-rw-r--r--st.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/st.c b/st.c
index b7edf45..a6f541b 100644
--- a/st.c
+++ b/st.c
@@ -3078,8 +3078,9 @@ draw(void)
cx--;
drawregion(0, 0, term.col, term.row);
- xdrawcursor(cx, term.c.y, term.line[term.c.y][cx],
- term.ocx, term.ocy, term.line[term.ocy][term.ocx]);
+ if (term.scr == 0)
+ xdrawcursor(cx, term.c.y, term.line[term.c.y][cx],
+ term.ocx, term.ocy, term.line[term.ocy][term.ocx]);
term.ocx = cx;
term.ocy = term.c.y;
xfinishdraw();