- fix: compiler set's custom link parameters not used when compiling

- fix: code completion doesn't work when input inside () or []
This commit is contained in:
Roy Qu 2021-12-19 16:54:31 +08:00
parent 33e8042944
commit 6ab8ba9869
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,7 @@
Version 0.11.4 For Dev-C++ 7 Beta
- fix: compiler set's custom link parameters not used when compiling
- fix:
Version 0.11.3 For Dev-C++ 7 Beta Version 0.11.3 For Dev-C++ 7 Beta
- fix: use pixel size for fonts, to fit different dpi in multiple displays - fix: use pixel size for fonts, to fit different dpi in multiple displays
- enhancement: use the new expression parser to parse info for tips - enhancement: use the new expression parser to parse info for tips

View File

@ -475,7 +475,7 @@ QString Compiler::getLibraryArguments(FileType fileType)
// Add global compiler linker extras // Add global compiler linker extras
if (compilerSet()->useCustomLinkParams() && !compilerSet()->customLinkParams().isEmpty()) { if (compilerSet()->useCustomLinkParams() && !compilerSet()->customLinkParams().isEmpty()) {
result += " "+compilerSet()->customCompileParams(); result += " "+compilerSet()->customLinkParams();
} }
if (mProject) { if (mProject) {

View File

@ -2637,8 +2637,10 @@ void Editor::showCompletion(const QString& preWord,bool autoComplete)
//word=getWordAtPosition(this,caretXY(),pBeginPos,pEndPos, WordPurpose::wpCompletion); //word=getWordAtPosition(this,caretXY(),pBeginPos,pEndPos, WordPurpose::wpCompletion);
QString memberOperator; QString memberOperator;
QStringList memberExpression; QStringList memberExpression;
BufferCoord pos = caretXY();
pos.Char--;
QStringList ownerExpression = getOwnerExpressionAndMemberAtPositionForCompletion( QStringList ownerExpression = getOwnerExpressionAndMemberAtPositionForCompletion(
caretXY(), pos,
memberOperator, memberOperator,
memberExpression); memberExpression);
// qDebug()<<ownerExpression<<memberExpression; // qDebug()<<ownerExpression<<memberExpression;