- fix: syntax color of #include header filenames not correct
This commit is contained in:
parent
35068cb3ed
commit
0286043cd7
1
NEWS.md
1
NEWS.md
|
@ -12,6 +12,7 @@ Red Panda C++ Version 1.0.0
|
|||
- enhancement: clear infos in the status bar when editor closed
|
||||
- fix: wrong selection when drag & dropped in editor
|
||||
- enhancement: toggle block comment
|
||||
- fix: syntax color of #include header filenames not correct
|
||||
|
||||
Red Panda C++ Version 0.14.5
|
||||
- fix: the "gnu c++ 20" option in compiler set options is wrong
|
||||
|
|
|
@ -886,7 +886,9 @@ void Editor::onPreparePaintHighlightToken(int line, int aChar, const QString &to
|
|||
if (token.isEmpty())
|
||||
return;
|
||||
|
||||
if (mParser && highlighter() && (attr == highlighter()->identifierAttribute())) {
|
||||
if (mParser && highlighter() && (attr == highlighter()->identifierAttribute())
|
||||
&& !mParser->isIncludeLine(lines()->getString(line-1)) ) {
|
||||
|
||||
BufferCoord p{aChar,line};
|
||||
// BufferCoord pBeginPos,pEndPos;
|
||||
// QString s= getWordAtPosition(this,p, pBeginPos,pEndPos, WordPurpose::wpInformation);
|
||||
|
|
|
@ -72,7 +72,7 @@ void EditorMiscWidget::doSave()
|
|||
pSettings->editor().setAutoDetectFileEncoding(ui->chkAutoDetectFileEncoding->isChecked());
|
||||
|
||||
if (ui->cbEncodingDetail->isVisible()) {
|
||||
pSettings->editor().setDefaultEncoding(ui->cbEncodingDetail->currentData().toByteArray());
|
||||
pSettings->editor().setDefaultEncoding(ui->cbEncodingDetail->currentText().toLocal8Bit());
|
||||
} else {
|
||||
pSettings->editor().setDefaultEncoding(ui->cbEncoding->currentData().toByteArray());
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue