mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 09:21:55 +00:00
Synonyms lookup: return correct offset
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user