shithub: riscv

Download patch

ref: 3864ccc42aa08dba37937b280f7d814a786c5b31
parent: 6cc7c754be8545860deb76bafc1cff7881b77f79
author: Sigrid Solveig Haflínudóttir <[email protected]>
date: Mon Aug 22 17:03:53 EDT 2022

audio/zuke: redraw as soon as search input is enter (not only cancelled); more chance for non-blocking redraw

--- a/sys/src/cmd/audio/zuke/zuke.c
+++ b/sys/src/cmd/audio/zuke/zuke.c
@@ -969,10 +969,9 @@
 	inc = (d == '/' || d == 'n') ? 1 : -1;
 	if(d == '/' || d == '?')
 		sz = enter(inc > 0 ? "forward:" : "backward:", buf, sizeof(buf), mctl, kctl, screen->screen);
-	if(sz < 1){
-		redraw(1);
+	redraw(1);
+	if(sz < 1)
 		return;
-	}
 
 	cycle = 1;
 	for(i = pcur+inc; i >= 0 && i < pl->n;){
@@ -1186,7 +1185,7 @@
 	a[3].c = chancreate(sizeof(ind), 0);
 	playc = a[3].c;
 
-	redrawc = chancreate(sizeof(ulong), 1);
+	redrawc = chancreate(sizeof(ulong), 8);
 	proccreate(redrawproc, nil, 8192);
 
 	for(n = 0; n < Numcolors; n++)