diff --git a/src/draw.c b/src/draw.c index 0679244..363d84e 100644 --- a/src/draw.c +++ b/src/draw.c @@ -709,6 +709,11 @@ static void matrix_init(struct term_buf* buf) dgn_throw(DGN_ALLOC); } + if(buf->height <= 3) + { + return; + } + // Initialize grid for (int i = 0; i <= buf->height; ++i) { @@ -840,6 +845,11 @@ static void matrix(struct term_buf* buf) return; } + if(buf->height <= 3) + { + return; + } + count += 1; if (count > frame_delay) {