summaryrefslogtreecommitdiffstats
path: root/src/btop_theme.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/btop_theme.cpp')
-rw-r--r--src/btop_theme.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/btop_theme.cpp b/src/btop_theme.cpp
index 136adbf..b820369 100644
--- a/src/btop_theme.cpp
+++ b/src/btop_theme.cpp
@@ -381,11 +381,16 @@ namespace Theme {
if (themefile.good()) {
Logger::debug("Loading theme file: " + filename);
while (not themefile.bad()) {
+ if (themefile.peek() == '#') {
+ themefile.ignore(SSmax, '\n');
+ continue;
+ }
themefile.ignore(SSmax, '[');
if (themefile.eof()) break;
string name, value;
getline(themefile, name, ']');
if (not Default_theme.contains(name)) {
+ themefile.ignore(SSmax, '\n');
continue;
}
themefile.ignore(SSmax, '=');
@@ -394,6 +399,7 @@ namespace Theme {
if (themefile.peek() == '"') {
themefile.ignore(1);
getline(themefile, value, '"');
+ themefile.ignore(SSmax, '\n');
}
else getline(themefile, value, '\n');