render: change minimum window size from 4x20 -> 1x2 (rows/cols)

This commit is contained in:
Daniel Eklöf 2020-09-07 19:34:06 +02:00
parent f9cbdd3b11
commit 6e4d29ef71
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 4 additions and 2 deletions

View file

@ -75,6 +75,8 @@
* Foot now searches for its configuration in
`$XDG_DATA_DIRS/foot/foot.ini`, if no configuration is found in
`$XDG_CONFIG_HOME/foot/foot.ini` or in `$XDG_CONFIG_HOME/footrc`.
* Minimum window size changed from four rows and 20 columns, to 1 row
and 2 columns.
### Fixed

View file

@ -2042,8 +2042,8 @@ maybe_resize(struct terminal *term, int width, int height, bool force)
}
/* Don't shrink grid too much */
const int min_cols = 20;
const int min_rows = 4;
const int min_cols = 2;
const int min_rows = 1;
/* Minimum window size */
const int min_width = min_cols * term->cell_width;