mirror of
https://github.com/hyprwm/Hypr.git
synced 2024-11-22 13:35:57 +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
|
||||
if (COMMENTSTART != std::string::npos)
|
||||
line = line.substr(COMMENTSTART + 1);
|
||||
line = line.substr(0, COMMENTSTART);
|
||||
|
||||
// remove shit at the beginning
|
||||
while (line[0] == ' ' || line[0] == '\t') {
|
||||
|
@ -359,12 +359,10 @@ void ConfigManager::loadConfigLoadVars() {
|
|||
Debug::log(NONE, line);
|
||||
|
||||
parseError = "Config error at line " + std::to_string(linenum) + ": Line parsing error.";
|
||||
//break;
|
||||
}
|
||||
|
||||
if (parseError != "" && parseError.find("Config error at line") != 0) {
|
||||
parseError = "Config error at line " + std::to_string(linenum) + ": " + parseError;
|
||||
//break;
|
||||
}
|
||||
|
||||
++linenum;
|
||||
|
|
Loading…
Reference in a new issue