From 29c87905686c263fa57155ba9438eedb04c2772e Mon Sep 17 00:00:00 2001 From: JackChen <17683835261@163.com> Date: Wed, 11 Feb 2026 11:15:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D/=20/=20=E7=9A=84=E4=B9=90?= =?UTF-8?q?=E9=AB=98=E7=AC=A6=E5=8F=B7Tab=E5=BE=AA=E7=8E=AF=E9=AB=98?= =?UTF-8?q?=E4=BA=AE=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- devel/201_80.md | 6 ++++++ src/Texmacs/Window/tm_button.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 devel/201_80.md diff --git a/devel/201_80.md b/devel/201_80.md new file mode 100644 index 0000000000..ecf48b5aab --- /dev/null +++ b/devel/201_80.md @@ -0,0 +1,6 @@ +# [201_80] 修复/ / 的乐高符号Tab循环高亮显示问题 + +## 如何测试 +1. 进入数学模式输入`/` `/`,出现斜着的平行符号,Tab一次是竖着的,两次是`//`。 +2. 观察Tab循环高亮是否正常显示。 + diff --git a/src/Texmacs/Window/tm_button.cpp b/src/Texmacs/Window/tm_button.cpp index 0c65f2f014..36fddcf393 100644 --- a/src/Texmacs/Window/tm_button.cpp +++ b/src/Texmacs/Window/tm_button.cpp @@ -251,7 +251,7 @@ box_widget (scheme_tree p, string s, color col, bool trans, bool ink) { if ((n >= 5) && is_atomic (p[4])) sz= as_int (p[4]); if ((n >= 6) && is_atomic (p[5])) dpi= as_int (p[5]); if ((n >= 7) && is_atomic (p[6])) dw= as_int (p[6]); - font fn= find_font (family, fn_class, series, shape, sz, dpi); + font fn= smart_font (family, fn_class, series, shape, sz, dpi); box b = text_box (decorate (), 0, s, fn, col); if (ink) b= resize_box (decorate (), b, b->x3, b->y3, b->x4, b->y4, true); return box_widget (b, trans, dw);