Move to the first item when setting lines

This fixes an issue where you can resize beyond the number of items
This commit is contained in:
speedie 2023-06-24 17:01:43 +02:00
parent dfc4fe038c
commit bd49d876cd

View file

@ -442,6 +442,8 @@ void defaultimg(Arg *arg) {
void setlines(Arg *arg) {
if (!overridelines) return;
sel = curr = matches;
lines += arg->i;
if (lines < 0) {