Merge branch 'history_crash' of https://github.com/martinetd/kitty

This commit is contained in:
Kovid Goyal
2018-11-30 13:45:27 +05:30

View File

@@ -73,7 +73,7 @@ pagerhist_extend(PagerHistoryBuf *ph, size_t minsz) {
void *newbuf = PyMem_Realloc(ph->buffer, newsz * sizeof(Py_UCS4));
if (!newbuf) return false;
ph->buffer = newbuf;
ph->bufsize += newsz;
ph->bufsize = newsz;
return true;
}