aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-14 10:07:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-14 10:07:12 +0000
commit7480c1c06be0039e6b3bd019e6db9d118b964f05 (patch)
tree596db778dd1a7f8cf7d463f80e2255a58a34a42b
parentterm: print: manually increment cursor column (diff)
term: remove assert, as we're already checking for this in the loop condition
-rw-r--r--terminal.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index fa1a13ba..150d5335 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2419,7 +2419,6 @@ term_print(struct terminal *term, wchar_t wc, int width)
/* Advance cursor the 'additional' columns while dirty:ing the cells */
for (int i = 1; i < width && term->grid->cursor.point.col < term->cols - 1; i++) {
term->grid->cursor.point.col++;
- assert(term->grid->cursor.point.col < term->cols);
struct cell *cell = &row->cells[term->grid->cursor.point.col];
cell->wc = 0;