From c8cc88844abddb6e0670973f5ae3d15c0d44efab Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 3 Mar 2024 19:25:53 +0800 Subject: [PATCH] fix: wrong color for #include underline --- RedPandaIDE/editor.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 853f8236..9e9a224e 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -1179,6 +1179,11 @@ void Editor::onGetEditingAreas(int line, QSynedit::EditingAreaList &areaList) p->beginX = pos1+2; p->endX = pos2+1; p->type = QSynedit::EditingAreaType::eatUnderLine; + if (syntaxer()) { + p->color = syntaxer()->identifierAttribute()->foreground(); + } else { + p->color = foregroundColor(); + } areaList.append(p); } }