mirror of
https://github.com/openbsd/src.git
synced 2025-12-05 23:44:37 +00:00
Allow characters to be combined in either order, reported by Jake
Stewart in GitHub issue 4726.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: screen-write.c,v 1.240 2025/11/13 13:08:44 nicm Exp $ */
|
||||
/* $OpenBSD: screen-write.c,v 1.241 2025/12/04 06:02:27 nicm Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
|
||||
@@ -2057,6 +2057,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;
|
||||
|
||||
Reference in New Issue
Block a user