mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-26 06:45:58 +01:00
fixed comments in the config oops
This commit is contained in:
parent
caa967a9b2
commit
d329e39873
1 changed files with 1 additions and 3 deletions
|
@ -257,7 +257,7 @@ void parseLine(std::string& line) {
|
||||||
|
|
||||||
// now, cut the comment off
|
// now, cut the comment off
|
||||||
if (COMMENTSTART != std::string::npos)
|
if (COMMENTSTART != std::string::npos)
|
||||||
line = line.substr(COMMENTSTART + 1);
|
line = line.substr(0, COMMENTSTART);
|
||||||
|
|
||||||
// remove shit at the beginning
|
// remove shit at the beginning
|
||||||
while (line[0] == ' ' || line[0] == '\t') {
|
while (line[0] == ' ' || line[0] == '\t') {
|
||||||
|
@ -359,12 +359,10 @@ void ConfigManager::loadConfigLoadVars() {
|
||||||
Debug::log(NONE, line);
|
Debug::log(NONE, line);
|
||||||
|
|
||||||
parseError = "Config error at line " + std::to_string(linenum) + ": Line parsing error.";
|
parseError = "Config error at line " + std::to_string(linenum) + ": Line parsing error.";
|
||||||
//break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parseError != "" && parseError.find("Config error at line") != 0) {
|
if (parseError != "" && parseError.find("Config error at line") != 0) {
|
||||||
parseError = "Config error at line " + std::to_string(linenum) + ": " + parseError;
|
parseError = "Config error at line " + std::to_string(linenum) + ": " + parseError;
|
||||||
//break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
++linenum;
|
++linenum;
|
||||||
|
|
Loading…
Reference in a new issue