mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
Unrelated: Fix file-relative require searcher
This commit is contained in:
parent
f1c63091af
commit
d147aae066
1 changed files with 1 additions and 1 deletions
|
@ -284,7 +284,7 @@ int searcherAbsolute(lua_State *L)
|
||||||
int searcherRelative(lua_State *L)
|
int searcherRelative(lua_State *L)
|
||||||
{
|
{
|
||||||
lua_Debug dbg;
|
lua_Debug dbg;
|
||||||
lua_getstack(L, 1, &dbg);
|
lua_getstack(L, 2, &dbg);
|
||||||
lua_getinfo(L, "S", &dbg);
|
lua_getinfo(L, "S", &dbg);
|
||||||
auto currentFile = QString::fromUtf8(dbg.source, dbg.srclen);
|
auto currentFile = QString::fromUtf8(dbg.source, dbg.srclen);
|
||||||
if (currentFile.startsWith("@"))
|
if (currentFile.startsWith("@"))
|
||||||
|
|
Loading…
Reference in a new issue