2015-07-24 12:42:19 (UTC-03:00)
Marcel Rodrigues <marcelgmr@gmail.com>
More concise reporting.
diff --git a/term.c b/term.c index 8ec6191..0f0fa15 100644 --- a/term.c +++ b/term.c @@ -127,9 +127,8 @@ static int within_bounds(Term *term, int row, int col) { if (row < 0 || row >= term->rows || col < 0 || col >= term->cols) { - logfmt("error: cursor out of bounds, check terminal size\n"); - logfmt(" position: (%3d, %3d)\n", row+1, col+1); - logfmt(" dimensions: (%3d, %3d)\n", term->rows, term->cols); + logfmt("position %d,%d is out of bounds %d,%d\n", + row+1, col+1, term->rows, term->cols); return 0; } else { return 1;