mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-22 18:49:49 +01:00
properly rid of whitespace chars from cfg lines
This commit is contained in:
parent
a431c1b01c
commit
760b37f71d
1 changed files with 1 additions and 4 deletions
|
@ -1126,10 +1126,7 @@ void CConfigManager::parseLine(std::string& line) {
|
|||
startPos++;
|
||||
}
|
||||
|
||||
// remove shit at the beginning
|
||||
while (line[0] == ' ' || line[0] == '\t') {
|
||||
line = line.substr(1);
|
||||
}
|
||||
line = removeBeginEndSpacesTabs(line);
|
||||
|
||||
if (line.contains(" {")) {
|
||||
auto cat = line.substr(0, line.find(" {"));
|
||||
|
|
Loading…
Reference in a new issue