fix: first update var values then search

This commit is contained in:
Alex Duan 2023-02-12 16:41:43 +08:00
parent c823ad912f
commit f2b8f18661
1 changed files with 4 additions and 4 deletions

View File

@ -938,13 +938,13 @@ char* tireSearchWord(int type, char* pre) {
return matchNextPrefix(tire, pre);
}
// can obtain var names from local
STire* tire = getAutoPtr(type);
if (tire == NULL) {
if(updateTireValue(type, true)) {
return NULL;
}
if(updateTireValue(type, true)) {
// can obtain var names from local
STire* tire = getAutoPtr(type);
if (tire == NULL) {
return NULL;
}