shithub: pplay

Download patch

ref: 1ed61fa980d084564599dcb2f89665f568ef9011
parent: 5f1c56ab00a3ec14d605920c084d233f098282b8
author: qwx <qwx@sciops.net>
date: Mon Jan 30 23:01:58 EST 2023

lift range requirement for copy

--- a/cmd.c
+++ b/cmd.c
@@ -179,10 +179,6 @@
 {
 	Chunk *left, *right;
 
-	if(dot.from == 0 && dot.to == totalsz){
-		werrstr("copy: no range selected");
-		return -1;
-	}
 	dprint(hold, "cmd/copy %Δ\n", &dot);
 	splitrange(dot.from, dot.to, &left, &right);
 	snarf(clone(left, right));