Synonyms lookup: return correct offset

This commit is contained in:
Jeff Doozan
2020-12-19 18:01:21 -05:00
parent 88af1a077c
commit 8e9f72ae57

View File

@@ -897,8 +897,10 @@ bool SynFile::lookup(const char *str, glong &idx)
}
if (!bFound)
idx = iFrom; //next
else
idx = iThisIndex;
else {
const gchar *key = get_key(iThisIndex);
idx = g_ntohl(get_uint32(key+strlen(key)+1));
}
}
return bFound;
}