From 657de4a361d65fd8e4832ef65be280264a7f7a02 Mon Sep 17 00:00:00 2001 From: Aiden Gall Date: Mon, 20 Nov 2023 23:19:40 +0000 Subject: stop cursor drawing while scrolling --- st.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'st.c') 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(); -- cgit v1.2.3