mirror of
https://github.com/Dushistov/sdcv.git
synced 2025-12-15 17:31:56 +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)
|
if (!bFound)
|
||||||
idx = iFrom; //next
|
idx = iFrom; //next
|
||||||
else
|
else {
|
||||||
idx = iThisIndex;
|
const gchar *key = get_key(iThisIndex);
|
||||||
|
idx = g_ntohl(get_uint32(key+strlen(key)+1));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return bFound;
|
return bFound;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user