ecode: More XML Tools plugin fixes.

This commit is contained in:
Martín Lucas Golini
2023-07-11 17:49:01 -03:00
parent c2e8a55bfa
commit f9ead38c9c
7 changed files with 81 additions and 59 deletions

View File

@@ -143,7 +143,7 @@ void AutoCompletePlugin::onRegister( UICodeEditor* editor ) {
const DocSyntaxDefEvent* event = static_cast<const DocSyntaxDefEvent*>( ev );
std::string oldLang = event->getOldLang();
std::string newLang = event->getNewLang();
#if AUTO_COMPLETE_THREADED
#if defined( AUTO_COMPLETE_THREADED ) && AUTO_COMPLETE_THREADED == 1
mThreadPool->run( [&, oldLang, newLang] {
updateLangCache( oldLang );
updateLangCache( newLang );