mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-07-25 17:21:54 -07:00
pluginapi: remove starting newline in demangled func name (#3502)
This commit is contained in:
@@ -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()) {
|
||||
|
Reference in New Issue
Block a user