don't allow columns to be lower than 1, previously this would hide items

but we have hideitems now making this useless
This commit is contained in:
speedie 2023-04-07 23:53:19 +02:00
parent 6c927b8a7c
commit 96ebb6ab8e
2 changed files with 4 additions and 1 deletions

View file

@ -498,7 +498,7 @@ void
setcolumns(const Arg *arg)
{
columns += arg->i;
if (columns < 0) columns = 0;
if (columns < 1) columns = 1;
match();
resizeclient();

View file

@ -386,6 +386,9 @@ readargs(int argc, char *argv[])
fstrstr = cistrstr;
}
if (!columns)
columns = 1;
// initial text
if (input)
insert(input, strlen(input));