- fix: when "cleary symbol table of hidden editors" is turned on, content in the editor reshown is not correctly parsed

This commit is contained in:
Roy Qu 2022-09-27 18:53:42 +08:00
parent f187e9ead2
commit 58a8b7e6dd
4 changed files with 7 additions and 3 deletions

View File

@ -6,6 +6,7 @@ Red Panda C++ Version 1.4
- change: when create non-text project file, don't auto open it
- fix: the project compiler options is not correctly read when open old dev-c++ project
- fix: astyle.exe can't correctly format files that using non-ascii identifier
- fix: when "cleary symbol table of hidden editors" is turned on, content in the editor reshown is not correctly parsed
Red Panda C++ Version 1.3

View File

@ -53,14 +53,15 @@ msvc {
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
CONFIG(debug_and_release_target): {
CONFIG(debug): {
CONFIG(debug_and_release_target) {
CONFIG(debug, debug|release) {
OBJ_OUT_PWD = debug
}
CONFIG(release): {
CONFIG(release, debug|release) {
OBJ_OUT_PWD = release
}
}
INCLUDEPATH += ../libs/qsynedit ../libs/redpanda_qt_utils
LIBS += -L$$OUT_PWD/../libs/redpanda_qt_utils/$$OBJ_OUT_PWD \
-L$$OUT_PWD/../libs/qsynedit/$$OBJ_OUT_PWD \

View File

@ -352,6 +352,7 @@ QString Compiler::getCharsetArgument(const QByteArray& encoding,FileType fileTyp
} else {
execEncodingName = compilerSetExecCharset;
}
qDebug()<<encodingName<<execEncodingName;
if (checkSyntax) {
result += QString(" -finput-charset=%1")
.arg(encodingName);

View File

@ -1292,6 +1292,7 @@ void Editor::showEvent(QShowEvent */*event*/)
&CppParser::onEndParsing,
this,
&QSynedit::SynEdit::invalidate);
resetCppParser(mParser);
reparse();
}