Fix screen being deleted on resize

Also fix crash when resizing the altbuf
This commit is contained in:
Kovid Goyal
2016-11-21 09:34:16 +05:30
parent 5681138243
commit f8403d4dec
2 changed files with 4 additions and 4 deletions

View File

@@ -27,8 +27,10 @@
#define next_dest_line(continued) \
if (dest_y >= dest->ynum - 1) { \
linebuf_index(dest, 0, dest->ynum - 1); \
linebuf_init_line(dest, dest->ynum - 1); \
historybuf_add_line(historybuf, dest->line); \
if (historybuf != NULL) { \
linebuf_init_line(dest, dest->ynum - 1); \
historybuf_add_line(historybuf, dest->line); \
}\
} else dest_y++; \
init_dest_line(dest_y); \
dest->continued_map[dest_y] = continued;