mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-07 00:06:35 +01:00
Fix a bunch of misc bugs and corner cases
This commit is contained in:
@@ -60,6 +60,9 @@ static void help_init_window(ToxWindow *self, int height, int width)
|
||||
int y2, x2;
|
||||
getmaxyx(stdscr, y2, x2);
|
||||
|
||||
if (y2 <= 0 || x2 <= 0)
|
||||
return;
|
||||
|
||||
height = MIN(height, y2);
|
||||
width = MIN(width, x2);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user