aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorvaxerski <[email protected]>2023-02-04 15:21:57 +0000
committervaxerski <[email protected]>2023-02-04 15:22:03 +0000
commit760b37f71d200643d3e267472e5cc290d38d1a53 (patch)
treeac7622f4f966af3675e3e47651bd9e88eac4fa23
parenta431c1b01c08cdc1c2f030bebf052aa4f534d12a (diff)
downloadHyprland-760b37f71d200643d3e267472e5cc290d38d1a53.tar.gz
Hyprland-760b37f71d200643d3e267472e5cc290d38d1a53.zip
properly rid of whitespace chars from cfg lines
-rw-r--r--src/config/ConfigManager.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp
index 07ea3d03..142c8d71 100644
--- a/src/config/ConfigManager.cpp
+++ b/src/config/ConfigManager.cpp
@@ -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(" {"));