diff --git a/screen-write.c b/screen-write.c index 7df389867..8234d7198 100644 --- a/screen-write.c +++ b/screen-write.c @@ -1,4 +1,4 @@ -/* $OpenBSD: screen-write.c,v 1.300 2026/10/12 18:47:52 nicm Exp $ */ +/* $OpenBSD: screen-write.c,v 1.301 2026/10/14 13:36:37 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -1407,7 +1407,8 @@ screen_write_sync_redraw_cb(const struct tty_ctx *ttyctx, u_int py, u_int ny) { struct window_pane *wp = ttyctx->arg; - bit_nset(wp->sync_dirty, py, py + ny - 1); + if (ny != 0) + bit_nset(wp->sync_dirty, py, py + ny - 1); } /* Send the deferred scroll to the client. */ diff --git a/tty-features.c b/tty-features.c index 3e2702f7e..832e975ba 100644 --- a/tty-features.c +++ b/tty-features.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tty-features.c,v 1.49 2026/10/14 12:33:46 nicm Exp $ */ +/* $OpenBSD: tty-features.c,v 1.50 2026/10/14 13:36:37 nicm Exp $ */ /* * Copyright (c) 2020 Nicholas Marriott @@ -668,6 +668,7 @@ tty_default_features(struct client *c, const char *name, u_int version) "cstyle," "extkeys," "focus," + "imagescroll," "margins," "overline," "hyperlinks," @@ -684,6 +685,7 @@ tty_default_features(struct client *c, const char *name, u_int version) "extkeys," "focus," "hyperlinks," + "imagescroll," "osc7," "sync," "usstyle,"