exit on empty history

This commit is contained in:
yory8 2019-04-04 10:21:20 +02:00
parent cd492bea9e
commit 7de5487279

View file

@ -28,6 +28,10 @@ func selector(history []string, max int) error {
}
func dmenu(list []string, max int) (string, error) {
if len(list) == 0 {
return "", nil
}
args := []string{"dmenu", "-b",
"-fn",
"-misc-dejavu sans mono-medium-r-normal--17-120-100-100-m-0-iso8859-16",