diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-20 16:47:05 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-20 16:47:05 +0000 |
| commit | c5031be4899ea516635ef7c65a6f82b3b45860b9 (patch) | |
| tree | 10948eb4aface28e80d6a075fecf11fad3075618 /csi.c | |
| parent | Merge branch 'decset-1047-and-1048' (diff) | |
| parent | debug: rename assert() to xassert(), to avoid clashing with <assert.h> (diff) | |
Merge branch 'stacktrace'
Diffstat (limited to 'csi.c')
| -rw-r--r-- | csi.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -3,7 +3,6 @@ #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <assert.h> #include <errno.h> #if defined(_DEBUG) @@ -16,6 +15,7 @@ #define LOG_ENABLE_DBG 0 #include "log.h" #include "config.h" +#include "debug.h" #include "grid.h" #include "selection.h" #include "sixel.h" @@ -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; |
