This commit is contained in:
Kovid Goyal 2016-11-10 11:53:10 +05:30
parent 71640aefb2
commit d874155f1e

View File

@ -19,7 +19,7 @@ static PyObject*
clear(LineBuf *self) {
#define clear_doc "Clear all lines in this LineBuf"
memset(self->buf, 0, self->block_size * CELL_SIZE);
memset(self->continued_map, 0, self->ynum * sizeof(index_type));
memset(self->continued_map, 0, self->ynum * sizeof(bool));
for (index_type i = 0; i < self->ynum; i++) {
clear_chars_to_space(self, i);
self->line_map[i] = i;