mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-04 06:01:56 -07:00
fix parser in nested categories
This commit is contained in:
@@ -935,7 +935,14 @@ void CConfigManager::parseLine(std::string& line) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (line.contains("}") && currentCategory != "") {
|
if (line.contains("}") && currentCategory != "") {
|
||||||
currentCategory = "";
|
|
||||||
|
const auto LASTSEP = currentCategory.find_last_of(':');
|
||||||
|
|
||||||
|
if (LASTSEP == std::string::npos)
|
||||||
|
currentCategory = "";
|
||||||
|
else
|
||||||
|
currentCategory = currentCategory.substr(0, LASTSEP);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user