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
commit 7e7dbc5ecf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

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;
}