shithub: riscv

Download patch

ref: f2eef8e077d3a9d7755c18ddf26722eaa3ab81b8
parent: c5bfb20546c1694803b0a5d9b7477e5c27af0dba
author: qwx <qwx@sciops.net>
date: Mon Oct 24 03:24:33 EDT 2022

bar: revert boundaries fix, the old ones are fine

--- a/sys/src/cmd/bar.c
+++ b/sys/src/cmd/bar.c
@@ -147,7 +147,6 @@
 	draw(screen, r, cback, nil, ZP);
 	string(screen, p, ctext, ZP, f, s);
 	if(hlitem >= 0){
-		r.min.x += sepw;
 		for(i = 0; i < hlitem; i++)
 			r.min.x += itemw[i];
 		r.max.x = r.min.x + itemw[i];
@@ -227,7 +226,7 @@
 		return;
 	}
 
-	for(i = 0, ix = sepw; i < nitems; i++){
+	for(i = ix = 0; i < nitems; i++){
 		ix += itemw[i];
 		if(x <= ix){
 			fprint(1, "%d\t%s\n", buttons, items[i]);