aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-01-20 16:47:05 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-01-20 16:47:05 +0000
commitc5031be4899ea516635ef7c65a6f82b3b45860b9 (patch)
tree10948eb4aface28e80d6a075fecf11fad3075618 /csi.c
parentMerge branch 'decset-1047-and-1048' (diff)
parentdebug: rename assert() to xassert(), to avoid clashing with <assert.h> (diff)
Merge branch 'stacktrace'
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/csi.c b/csi.c
index 9f246a33..076723ae 100644
--- a/csi.c
+++ b/csi.c
@@ -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;