ref: 6ee1e4bd7898b96abb5c655bc9335df96fafa19f
parent: 5a51e900dd113a1a5f2d2a0e8bac067fbc7da3ae
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Wed Aug 24 09:26:28 EDT 2022
audio/zuke: fix off-by-one in playlist loading; initialize scrolling to avoid jump on first track
--- a/sys/src/cmd/audio/zuke/zuke.c
+++ b/sys/src/cmd/audio/zuke/zuke.c
@@ -897,8 +897,8 @@
*e++ = 0;
switch(s[-2]){
case 0:
- if(m->path != nil){
addit:
+ if(m->path != nil){
for(i = 0; cols[i] != 0; i++){
if((x = stringwidth(f, getcol(m, cols[i]))) > mincolwidth[i])
mincolwidth[i] = x;
@@ -1222,6 +1222,7 @@
recenter();
}
+ updatescrollsz();
redraw(1);
m.buttons = 0;
scrolling = 0;