Fix top lines appearing at bottom when resizing a screen that seen more lines than the number of lines available

This commit is contained in:
Kovid Goyal
2016-12-12 10:58:18 +05:30
parent b6c639c487
commit 271e3360ff
2 changed files with 6 additions and 0 deletions

View File

@@ -31,6 +31,7 @@
linebuf_init_line(dest, dest->ynum - 1); \
historybuf_add_line(historybuf, dest->line); \
}\
linebuf_clear_line(dest, dest->ynum - 1); \
} else dest_y++; \
init_dest_line(dest_y); \
dest->continued_map[dest_y] = continued;