- fix: corresponding '>' not correctly removed when deleting '<' in #include line
This commit is contained in:
parent
b0c8526d97
commit
fc11f1223b
1
NEWS.md
1
NEWS.md
|
@ -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
|
||||
|
|
|
@ -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 == ')')) ||
|
||||
|
|
Loading…
Reference in New Issue