shithub: pplay

Download patch

ref: 29e2aba8b275606970b2ec9d80392363aed6e6ac
parent: 8cac775c460cd32ffa82a756e6c7e6dc6d7fda51
author: qwx <[email protected]>
date: Wed Nov 30 01:05:10 EST 2022

zoominto: don't check for range

it shouldn't really matter, and breaks reseting zoom
if there's no range set

--- a/draw.c
+++ b/draw.c
@@ -240,10 +240,6 @@
 int
 zoominto(vlong from, vlong to)
 {
-	if(dot.from.pos == 0 && dot.to.pos == totalsz){
-		fprint(2, "not a range\n");
-		return -1;
-	}
 	if(from < 0)
 		from = 0;
 	from &= ~3;