mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-09 07:07:19 +02:00
...
This commit is contained in:
@@ -279,8 +279,9 @@ PyObject* parse_bytes_dump(PyObject UNUSED *, PyObject *);
|
||||
PyObject* parse_bytes(PyObject UNUSED *, PyObject *);
|
||||
uint16_t* translation_table(char);
|
||||
uint32_t decode_utf8(uint32_t*, uint32_t*, uint8_t byte);
|
||||
Savepoint* savepoints_pop(SavepointBuffer *pts);
|
||||
Savepoint* savepoints_push(SavepointBuffer *pts);
|
||||
Savepoint* savepoints_pop(SavepointBuffer *);
|
||||
Savepoint* savepoints_push(SavepointBuffer *);
|
||||
void savepoints_init(SavepointBuffer *);
|
||||
void cursor_reset(Cursor*);
|
||||
Cursor* cursor_copy(Cursor*);
|
||||
void cursor_copy_to(Cursor *src, Cursor *dest);
|
||||
|
||||
@@ -24,3 +24,8 @@ Savepoint* savepoints_pop(SavepointBuffer *self) {
|
||||
RETREAT(end_of_data);
|
||||
return self->end_of_data;
|
||||
}
|
||||
|
||||
void savepoints_init(SavepointBuffer *self) {
|
||||
self->end_of_data = self->buf;
|
||||
self->start_of_data = self->buf;
|
||||
}
|
||||
|
||||
@@ -39,6 +39,7 @@ new(PyTypeObject *type, PyObject *args, PyObject UNUSED *kwds) {
|
||||
if (self->cursor == NULL || self->main_linebuf == NULL || self->alt_linebuf == NULL || self->change_tracker == NULL || self->tabstops == NULL) {
|
||||
Py_CLEAR(self); return NULL;
|
||||
}
|
||||
savepoints_init(&self->main_savepoints); savepoints_init(&self->alt_savepoints);
|
||||
}
|
||||
return (PyObject*) self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user