- 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:
parent
f187e9ead2
commit
58a8b7e6dd
1
NEWS.md
1
NEWS.md
|
@ -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
|
||||
|
||||
|
|
|
@ -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 \
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -1292,6 +1292,7 @@ void Editor::showEvent(QShowEvent */*event*/)
|
|||
&CppParser::onEndParsing,
|
||||
this,
|
||||
&QSynedit::SynEdit::invalidate);
|
||||
resetCppParser(mParser);
|
||||
reparse();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue