diff options
| author | Aiden Gall <aiden@aidengall.xyz> | 2023-11-20 23:19:40 +0000 |
|---|---|---|
| committer | Aiden Gall <aiden@aidengall.xyz> | 2023-11-20 23:19:40 +0000 |
| commit | 657de4a361d65fd8e4832ef65be280264a7f7a02 (patch) | |
| tree | 60a560b5fa17bf37e31ca262e399e3c28439eaaa | |
| parent | 7786188a45318f1bcac232d1615ffb8103c80677 (diff) | |
stop cursor drawing while scrolling
| -rw-r--r-- | st.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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(); |
