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:
parent
dfc4fe038c
commit
bd49d876cd
|
@ -442,6 +442,8 @@ void defaultimg(Arg *arg) {
|
|||
void setlines(Arg *arg) {
|
||||
if (!overridelines) return;
|
||||
|
||||
sel = curr = matches;
|
||||
|
||||
lines += arg->i;
|
||||
|
||||
if (lines < 0) {
|
||||
|
|
Loading…
Reference in a new issue