diff --git a/NEWS.md b/NEWS.md index 04927179..38e1f8fa 100644 --- a/NEWS.md +++ b/NEWS.md @@ -2,6 +2,7 @@ Red Panda C++ Version 0.14.4 - enhancement: git - log - fix: error in templates - enhancement: git - reset + - fix: header completion error when header name contains '+' Red Panda C++ Version 0.14.3 - fix: wrong code completion font size, when screen dpi changed diff --git a/RedPandaIDE/editor.cpp b/RedPandaIDE/editor.cpp index f3670d70..cebd9edf 100644 --- a/RedPandaIDE/editor.cpp +++ b/RedPandaIDE/editor.cpp @@ -2934,11 +2934,11 @@ void Editor::headerCompletionInsert() int posEnd = p.Char-1; QString sLine = lineText(); while ((posBegin>0) && - (isIdentChar(sLine[posBegin-1]) || (sLine[posBegin-1]=='.'))) + (isIdentChar(sLine[posBegin-1]) || (sLine[posBegin-1]=='.') || (sLine[posBegin-1]=='+'))) posBegin--; while ((posEnd < sLine.length()) - && (isIdentChar(sLine[posEnd]) || (sLine[posEnd]=='.'))) + && (isIdentChar(sLine[posEnd]) || (sLine[posEnd]=='.') || (sLine[posBegin-1]=='+'))) posEnd++; p.Char = posBegin+1; setBlockBegin(p);