- fix: corresponding '>' not correctly removed when deleting '<' in #include line

This commit is contained in:
Roy Qu 2022-03-19 14:26:06 +08:00
parent b0c8526d97
commit fc11f1223b
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ Red Panda C++ Version 1.0.1
- fix: short cut for goto definition/declaration doesn't work
- enhancement: press alt to switch to column selection mode while selection by mouse dragging in editor
- fix: order for parameters generated by auto link may not correct
- fix: corresponding '>' not correctly removed when deleting '<' in #include line
Red Panda C++ Version 1.0.0
- fix: calculation for code snippets's tab stop positions is not correct

View File

@ -495,8 +495,7 @@ void Editor::undoSymbolCompletion(int pos)
if ((DeletedChar == '\'') && (tokenType == SynHighlighterTokenType::Number))
return;
if ((DeletedChar == '<') &&
((tokenType != SynHighlighterTokenType::PreprocessDirective)
|| !lineText().startsWith("#include")))
!(mParser && mParser->isIncludeLine(lineText())))
return;
if ( (pSettings->editor().completeBracket() && (DeletedChar == '[') && (NextChar == ']')) ||
(pSettings->editor().completeParenthese() && (DeletedChar == '(') && (NextChar == ')')) ||