summaryrefslogtreecommitdiffstats
path: root/screen-write.c
diff options
context:
space:
mode:
authornicm <nicm>2016-09-02 20:57:20 +0000
committernicm <nicm>2016-09-02 20:57:20 +0000
commit2627ab322e0e8dffbf86b1c2eb969139a8062174 (patch)
tree15cc4f5210c0145ef14433470ba0c96c0860c6ea /screen-write.c
parent537964b92dcd2b4a30fdf37a370f9a204fff561c (diff)
Remember the number of lines scrolled into the history (versus cleared
into the history) and when resizing only use scrolled lines and not cleared lines (which are probably not intended to reappear). From Chaoren Lin.
Diffstat (limited to 'screen-write.c')
-rw-r--r--screen-write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c
index 3c4d2758..94ce359f 100644
--- a/screen-write.c
+++ b/screen-write.c
@@ -1016,7 +1016,7 @@ screen_write_clearhistory(struct screen_write_ctx *ctx)
struct grid *gd = s->grid;
grid_move_lines(gd, 0, gd->hsize, gd->sy);
- gd->hsize = 0;
+ gd->hscrolled = gd->hsize = 0;
}
/* Write cell data. */