ref: 0345e2a2c1399739a1629a7e6385b005e05d69a7
parent: 7d29d072f84e97ed311932b3a3cfdbeca317f4f9
author: glenda <[email protected]>
date: Sun Sep 5 19:53:28 EDT 2021
dmenu: better error message on empty input
--- a/dmenu.c
+++ b/dmenu.c
@@ -31,6 +31,7 @@
if((bp = Bfdopen(0, OREAD)) == nil)
sysfatal("setting buffering on fd0: %r");
+ werrstr("empty");
if((buffer = Brdstr(bp, '\0', 1)) == nil)
sysfatal("reading input lines: %r");