This commit is contained in:
Kovid Goyal
2017-08-28 16:37:55 +05:30
parent bab4680828
commit fe764ab6b6
2 changed files with 2 additions and 1 deletions

View File

@@ -199,6 +199,7 @@ copy_line_to(LineBuf *self, PyObject *args) {
static inline void
clear_line_(Line *l, index_type xnum) {
memset(l->cells, 0, xnum * sizeof(Cell));
clear_chars_in_line(l->cells, xnum, BLANK_CHAR);
}
void linebuf_clear_line(LineBuf *self, index_type y) {

View File

@@ -503,7 +503,7 @@ copy_char(Line* self, PyObject *args) {
PyErr_SetString(PyExc_ValueError, "Out of bounds");
return NULL;
}
copy_line(self, to);
COPY_CELL(self, src, to, dest);
Py_RETURN_NONE;
}