- fix: header completion error when header name contains '+'
This commit is contained in:
parent
b664094efc
commit
18c9f62787
1
NEWS.md
1
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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue