ref: 1645178866a8901a120769199de27bb6f458b82e
parent: c630a46750f449cd67ab56e6045f1e0100613362
author: qwx <[email protected]>
date: Sat Oct 29 17:59:18 EDT 2022
don't treat deleting all prompt text as an error
--- a/pplay.c
+++ b/pplay.c
@@ -198,7 +198,7 @@
case '_': setzoom(-1, 1); break;
case '+': setzoom(1, 1); break;
default:
- if((p = prompt(r)) == nil)
+ if((p = prompt(r)) == nil || strlen(p) == 0)
break;
if(cmd(p) < 0)
fprint(2, "cmd \"%s\" failed: %r\n", p);