mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 23:09:51 +01:00
fix parser in nested categories
This commit is contained in:
parent
ed2cacc5d5
commit
573cb0d4e0
1 changed files with 8 additions and 1 deletions
|
@ -935,7 +935,14 @@ void CConfigManager::parseLine(std::string& line) {
|
|||
}
|
||||
|
||||
if (line.contains("}") && currentCategory != "") {
|
||||
|
||||
const auto LASTSEP = currentCategory.find_last_of(':');
|
||||
|
||||
if (LASTSEP == std::string::npos)
|
||||
currentCategory = "";
|
||||
else
|
||||
currentCategory = currentCategory.substr(0, LASTSEP);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue