You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(editor): fix color mark lost when pressing Enter in middle of marked text
When inserting text inside a color mark, updateMark() splits the mark
into two segments, leaving newly inserted characters in the gap between
them, causing alternating highlight loss (e.g. "1,3" highlighted but
"2,4" not). Remove the split logic since Qt auto-adjusts QTextCursor
ranges to cover the new text.
在颜色标记中间按回车后,updateMark()将标记分割为两段,导致
新输入的字符落在间隙中,出现奇偶交替丢失高亮的问题。
移除分割逻辑,由Qt自动调整cursor范围即可正确覆盖。
Log: 修复颜色标记中间回车后新输入文本高亮丢失的问题
PMS: BUG-345731
Influence: 修复后,在颜色标记中间按回车换行继续输入文本时,新输入的文本将正确保持颜色高亮。
0 commit comments