From c35558f96984673675c58ee96e99aaa3ee8fc2f3 Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Wed, 8 May 2024 16:20:09 +0200 Subject: [PATCH] fix #3630 update completer if bibitem was changed --- src/latexdocument.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/latexdocument.cpp b/src/latexdocument.cpp index 8b79871a01..d55eed925e 100644 --- a/src/latexdocument.cpp +++ b/src/latexdocument.cpp @@ -1210,11 +1210,8 @@ void LatexDocument::handleRescanDocuments(HandledData changedCommands){ reCheckSyntax(); } }while(loopAgain); - if(updateCompleter){ - emit updateCompleterCommands(); - } - // user commands changed - // update completer & syntax check + + // bib files changed // update bibitem checking and completer @@ -1228,6 +1225,12 @@ void LatexDocument::handleRescanDocuments(HandledData changedCommands){ if (elem->edView) elem->edView->updateCitationFormats(); } + updateCompleter=true; + } + // user commands or bibitems changed + // update completer & syntax check + if(updateCompleter){ + emit updateCompleterCommands(); } } /*!