This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch tymux-10-quiet-head
in repository terminology.

View the commit online.

commit ef045b727edb09928dc8f894fdc853367abcf6db
Author: Boris Faure <[email protected]>
AuthorDate: Mon Nov 16 22:11:07 2026 +0000

    tools/unicode_dbl_width: generate the VS16 helpers of termptydbl.h
    
    termptydbl.h was edited by hand in f9622c66 to widen
    emoji-table-only codepoints only after a VARIATION SELECTOR-16, and
    the generator was left behind: running it would have dropped
    _termpty_is_wide_table() and the vs16 argument. Make it write the
    header as it is now.
---
 tools/unicode_dbl_width.py | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

diff --git a/tools/unicode_dbl_width.py b/tools/unicode_dbl_width.py
index 5f93e0b5..28234e49 100755
--- a/tools/unicode_dbl_width.py
+++ b/tools/unicode_dbl_width.py
@@ -90,7 +90,21 @@ Eina_Bool _termpty_is_wide(const Eina_Unicode g, Eina_Bool emoji_dbl_width);
 Eina_Bool _termpty_is_ambigous_wide(const Eina_Unicode g, Eina_Bool emoji_dbl_width);
 
 static inline Eina_Bool
-_termpty_is_dblwidth_get(const Termpty *ty, const Eina_Unicode g)
+_termpty_is_wide_table(const Termpty *ty, const Eina_Unicode g, Eina_Bool emoji)
+{
+   return ty->termstate.cjk_ambiguous_wide
+      ? _termpty_is_ambigous_wide(g, emoji)
+      : _termpty_is_wide(g, emoji);
+}
+
+/* vs16: whether this codepoint is immediately followed by U+FE0F
+ * (VARIATION SELECTOR-16). Only makes emoji-table-only codepoints wide
+ * when EINA_TRUE; the base (genuinely wide) table is unaffected either
+ * way. Callers writing a base character narrow-first (see
+ * termpty_text_append()'s VS16 retro-widen) should pass EINA_FALSE and
+ * apply the wide table's superset separately once VS16 is seen. */
+static inline Eina_Bool
+_termpty_is_dblwidth_get(const Termpty *ty, const Eina_Unicode g, Eina_Bool vs16)
 {
    /* optimize for latin1 non-ambiguous */
 """)
@@ -98,10 +112,10 @@ _termpty_is_dblwidth_get(const Termpty *ty, const Eina_Unicode g)
     file_header.write(
 """
      return EINA_FALSE;
-   if (!ty->termstate.cjk_ambiguous_wide)
-     return _termpty_is_wide(g, ty->config->emoji_dbl_width);
-   else
-     return _termpty_is_ambigous_wide(g, ty->config->emoji_dbl_width);
+   if (_termpty_is_wide_table(ty, g, EINA_FALSE))
+     return EINA_TRUE;
+   return ty->config->emoji_dbl_width && vs16 &&
+      _termpty_is_wide_table(ty, g, EINA_TRUE);
 }
 
 #endif

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to