diff options
author | nicm <nicm> | 2022-03-17 13:39:13 +0000 |
---|---|---|
committer | nicm <nicm> | 2022-03-17 13:39:13 +0000 |
commit | 6a1706a62fb2442326cd37d84ff8b0d39bf0b7a6 (patch) | |
tree | 1e03c4c1e3dedee0076cfdbc3ac7c1bf601da2ad | |
parent | 10d689e7354f789f951016f7f4d57a0c2d14e124 (diff) |
Check scroll-on-clear for ED also.
-rw-r--r-- | screen-write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/screen-write.c b/screen-write.c index aa898f78..6b6a750e 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1479,7 +1479,9 @@ screen_write_clearscreen(struct screen_write_ctx *ctx, u_int bg) ttyctx.bg = bg; /* Scroll into history if it is enabled. */ - if (s->grid->flags & GRID_HISTORY) + if ((s->grid->flags & GRID_HISTORY) && + ctx->wp != NULL && + options_get_number(ctx->wp->options, "scroll-on-clear")) grid_view_clear_history(s->grid, bg); else grid_view_clear(s->grid, 0, 0, sx, sy, bg); |