shithub: pplay

Download patch

ref: 55ae1f23a6430235143566fffd97bc7b8d11e4e5
parent: b9bc564345ce7f9c6030377caecb4f7e272c9008
author: qwx <qwx@sciops.net>
date: Mon Aug 28 15:11:48 EDT 2023

cmd: fix paste deadlock and stale drawings

--- a/cmd.c
+++ b/cmd.c
@@ -148,10 +148,10 @@
 	qlock(&lsync);
 	chold(c, &d);
 	*current = d;
+	qunlock(&lsync);
 	if(paste(nil) < 0)
 		fprint(2, "paste: %r\n");
-	qunlock(&lsync);
-	redraw(0);
+	redraw(1);
 	threadexits(nil);
 }