fix: can't complete <> "" in #include

This commit is contained in:
Roy Qu 2023-08-18 09:26:06 +08:00
parent 98f015f661
commit 097128e2f3
1 changed files with 2 additions and 1 deletions

View File

@ -961,7 +961,8 @@ void Editor::keyPressEvent(QKeyEvent *event)
} else {
if (pSettings->codeCompletion().enabled()
&& pSettings->codeCompletion().showCompletionWhileInput() ) {
if (mParser && mParser->isIncludeLine(lineText())) {
if (mParser && mParser->isIncludeLine(lineText())
&& ch.isDigit()) {
// is a #include line
processCommand(QSynedit::EditCommand::Char,ch,nullptr);
showHeaderCompletion(false);