shithub: pplay

Download patch

ref: f8f88f389dcf31db90fa81c568569de210c387bf
parent: d6e36b1d35d71d376d82c6a3260ac524885e4392
author: qwx <qwx@sciops.net>
date: Sun Oct 29 22:28:19 EDT 2023

draw: fix missing drawing final image after rendering is done

--- a/draw.c
+++ b/draw.c
@@ -205,16 +205,13 @@
 			break;
 		}
 		lockdisplay(display);
-		if(what == Drawcur)
-			erasemark(linepos);
-		else{
-			if(what == Drawrender || stalerender || working){
-				if(!working)
-					stalerender = 0;
-				render();
-			}
+		if(what == Drawrender || stalerender || working){
+			if(!working)
+				stalerender = 0;
+			render();
 			draw(screen, rectaddpt(view->r, screen->r.min), view, nil, ZP);
-		}
+		}else
+			erasemark(linepos);
 		renderpos(current->cur, col[Cline], 1);
 		linepos = current->cur;
 		drawstat();