fix(selector): wofi doesn't allow setting n of display items

This commit is contained in:
yory8 2019-09-30 09:55:42 +02:00
parent df27c88c2b
commit a080e1b7f9

View file

@ -39,7 +39,7 @@ func selector(data []string, max int, tool string) (string, error) {
"-lines",
strconv.Itoa(max)}
case "wofi":
args = []string{"wofi", "--cache-file", "/dev/null", "--dmenu", strconv.Itoa(max)}
args = []string{"wofi", "--cache-file", "/dev/null", "--dmenu"}
default:
return "", fmt.Errorf("Unsupported tool: %s", tool)
}