diff --git a/NEWS.md b/NEWS.md index e77c198d..797ab04a 100644 --- a/NEWS.md +++ b/NEWS.md @@ -4,6 +4,7 @@ Version 0.11.4 For Dev-C++ 7 Beta - fix: auto indent processing error when input '{' in the middle of if statement - fix: left and right gutter offset settings not correctly saved - enhancement: use svg icons for editor gutter, and they can zoom with font now + - fix: symbol completion for '<>' in the preprocessor line not work Version 0.11.3 For Dev-C++ 7 Beta - fix: use pixel size for fonts, to fit different dpi in multiple displays diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index 5e9c248b..c6ebf5a4 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -1916,7 +1916,7 @@ bool Editor::handleSymbolCompletion(QChar key) if ((tokenType == SynHighlighterTokenType::String) && (!tokenFinished) && (key!='\'') && (key!='\"') && (key!='(') && (key!=')')) return false; - if (( key=='<' || key =='>') && (tokenType != SynHighlighterTokenType::PreprocessDirective)) + if (( key=='<' || key =='>') && (mParser && !mParser->isIncludeLine(lineText()))) return false; if ((key == '\'') && (Attr->name() == "SYNS_AttrNumber")) return false;