Fix cursor moving one line up when resizing

This commit is contained in:
Kovid Goyal
2017-09-20 10:59:31 +05:30
parent 564f19d248
commit 3ca45ab241
7 changed files with 85 additions and 44 deletions

View File

@@ -28,7 +28,7 @@
if (dest_y >= dest->ynum - 1) { \
linebuf_index(dest, 0, dest->ynum - 1); \
if (historybuf != NULL) { \
linebuf_init_line(dest, dest->ynum - 1); \
init_dest_line(dest->ynum - 1); \
historybuf_add_line(historybuf, dest->line); \
}\
linebuf_clear_line(dest, dest->ynum - 1); \