From 33c1ba154940461029eb45a9ba047bf8cf7307e7 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 4 Dec 2025 06:02:27 +0000 Subject: [PATCH] Allow characters to be combined in either order, reported by Jake Stewart in GitHub issue 4726. --- screen-write.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/screen-write.c b/screen-write.c index 76beffbc..a2755d35 100644 --- a/screen-write.c +++ b/screen-write.c @@ -2152,6 +2152,8 @@ screen_write_combine(struct screen_write_ctx *ctx, const struct grid_cell *gc) case HANGULJAMO_STATE_NOT_HANGULJAMO: if (utf8_should_combine(&last.data, ud)) force_wide = 1; + else if (utf8_should_combine(ud, &last.data)) + force_wide = 1; else if (!utf8_has_zwj(&last.data)) return (0); break;