- fix: Crash when editing makefile

This commit is contained in:
Roy Qu 2022-12-26 18:20:26 +08:00
parent 52ed2b79f7
commit bd4478476d
4 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Red Panda C++ Version 2.8
- fix: Crash when editing makefile
Red Panda C++ Version 2.7
- enhancement: Remove multiple problems in the problem set view

View File

@ -10,7 +10,7 @@ isEmpty(APP_NAME) {
}
isEmpty(APP_VERSION) {
APP_VERSION = 2.7
APP_VERSION = 2.8
}
macos: {

View File

@ -798,7 +798,7 @@ void Editor::keyPressEvent(QKeyEvent *event)
}
}
lastWord = getPreviousWordAtPositionForCompleteFunctionDefinition(caretXY());
if (!lastWord.isEmpty()) {
if (mParser && !lastWord.isEmpty()) {
PStatement currentScope = mParser->findScopeStatement(mFilename,caretY());
while(currentScope && currentScope->kind==StatementKind::skBlock) {
currentScope = currentScope->parentScope.lock();

View File

@ -33,7 +33,7 @@ RedPandaIDE.depends += redpanda-git-askpass
APP_NAME = RedPandaCPP
APP_VERSION = 2.7
APP_VERSION = 2.8
linux: {
isEmpty(PREFIX) {