diff --git a/src/bar.cpp b/src/bar.cpp index 751cfb78..4fca042a 100644 --- a/src/bar.cpp +++ b/src/bar.cpp @@ -128,6 +128,8 @@ Bar::Bar() for (auto f : config::get_list(this->config_path, "font")) { std::vector font; string::split_into(f, ';', font); + if (font.size() < 2) + font.emplace_back("0"); this->opts->fonts.emplace_back(std::make_unique(font[0], std::stoi(font[1]))); } }