mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-26 13:09:48 +01:00
pluginapi: remove starting newline in demangled func name (#3502)
This commit is contained in:
parent
cb7dd1ac6e
commit
1afb00a01b
1 changed files with 5 additions and 1 deletions
|
@ -301,7 +301,11 @@ APICALL std::vector<SFunctionMatch> HyprlandAPI::findFunctionsByName(HANDLE hand
|
|||
count++;
|
||||
}
|
||||
|
||||
return SYMBOLSDEMANGLED.substr(pos, SYMBOLSDEMANGLED.find('\n', pos + 1) - pos);
|
||||
// Skip the newline char itself
|
||||
if (pos != 0)
|
||||
pos++;
|
||||
|
||||
return SYMBOLSDEMANGLED.substr(pos, SYMBOLSDEMANGLED.find('\n', pos) - pos);
|
||||
};
|
||||
|
||||
if (SYMBOLS.empty()) {
|
||||
|
|
Loading…
Reference in a new issue