exit on empty history
This commit is contained in:
parent
cd492bea9e
commit
7de5487279
1 changed files with 4 additions and 0 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue