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:
parent
6c927b8a7c
commit
96ebb6ab8e
|
@ -498,7 +498,7 @@ void
|
|||
setcolumns(const Arg *arg)
|
||||
{
|
||||
columns += arg->i;
|
||||
if (columns < 0) columns = 0;
|
||||
if (columns < 1) columns = 1;
|
||||
|
||||
match();
|
||||
resizeclient();
|
||||
|
|
|
@ -386,6 +386,9 @@ readargs(int argc, char *argv[])
|
|||
fstrstr = cistrstr;
|
||||
}
|
||||
|
||||
if (!columns)
|
||||
columns = 1;
|
||||
|
||||
// initial text
|
||||
if (input)
|
||||
insert(input, strlen(input));
|
||||
|
|
Loading…
Reference in a new issue