From a37b40001c42d0c00b68517327622a06fb332f6b Mon Sep 17 00:00:00 2001 From: nicm Date: Wed, 14 Oct 2026 13:36:37 +0000 Subject: [PATCH] Do not set zero bits, and add imagescroll feature to kitty and ghostty. --- screen-write.c | 5 +++-- tty-features.c | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/screen-write.c b/screen-write.c index 8fda18fa1..7bb99ecb6 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 @@ -1403,7 +1403,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 ee0471b46..41b8dd22b 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 @@ -658,6 +658,7 @@ tty_default_features(struct client *c, const char *name, u_int version) "cstyle," "extkeys," "focus," + "imagescroll," "margins," "overline," "hyperlinks," @@ -674,6 +675,7 @@ tty_default_features(struct client *c, const char *name, u_int version) "extkeys," "focus," "hyperlinks," + "imagescroll," "osc7," "sync," "usstyle,"