aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-01-16 20:16:00 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-01-16 20:16:00 +0000
commite56136ce1192d04a52b01ccb41284f0b7896430e (patch)
tree10948eb4aface28e80d6a075fecf11fad3075618 /csi.c
parentPrint stack trace on assert() failure or when calling fatal_error() (diff)
debug: rename assert() to xassert(), to avoid clashing with <assert.h>
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/csi.c b/csi.c
index 9279345f..076723ae 100644
--- a/csi.c
+++ b/csi.c
@@ -1083,7 +1083,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
}
- assert(new_col >= term->grid->cursor.point.col);
+ xassert(new_col >= term->grid->cursor.point.col);
term_cursor_right(term, new_col - term->grid->cursor.point.col);
}
break;
@@ -1099,7 +1099,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
break;
}
}
- assert(term->grid->cursor.point.col >= new_col);
+ xassert(term->grid->cursor.point.col >= new_col);
term_cursor_left(term, term->grid->cursor.point.col - new_col);
}
break;