[0113] 修复子表格 env_rects 与父单元格边框重叠问题#3340
Merged
Merged
Conversation
当光标位于子表格内部时,子表格的编辑辅助线(env_rects) 最外层边框会与父单元格的边框在同一位置绘制,导致线条加粗。 修复方式:在 compute_env_rects() 中检测当前处理的 table 是否为 subtable 的内部 table,若是则只绘制子表格内部单元格 边框,跳过最外层四条边(上、下、左、右),避免与父单元格 边框重叠。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
问题
在无框表格中嵌套子表格时,当光标位于子表格内部,子表格的编辑辅助线(env_rects)最外层边框会与父单元格的边框在同一位置绘制,导致视觉上线条加粗/重叠。
修复
在
compute_env_rects()中检测当前处理的table是否为subtable的内部table,若是则只绘制子表格内部单元格边框,跳过最外层四条边(上、下、左、右),避免与父单元格边框重叠。测试
TeXmacs/tests/tmu/0113.tmu🤖 Generated with Claude Code