fix(config): Remove tabs
This commit is contained in:
parent
0fca9a0c6e
commit
78b5f9651f
@ -86,6 +86,8 @@ void config::parse_file() {
|
|||||||
while (std::getline(in, line)) {
|
while (std::getline(in, line)) {
|
||||||
lineno++;
|
lineno++;
|
||||||
|
|
||||||
|
line = string_util::replace_all(line, "\t", "");
|
||||||
|
|
||||||
// Ignore empty lines and comments
|
// Ignore empty lines and comments
|
||||||
if (line.empty() || line[0] == ';' || line[0] == '#') {
|
if (line.empty() || line[0] == ';' || line[0] == '#') {
|
||||||
continue;
|
continue;
|
||||||
|
@ -260,7 +260,7 @@ bool font_manager::open_xcb_font(fonttype_pointer& fontptr, string fontname) {
|
|||||||
|
|
||||||
bool font_manager::has_glyph(fonttype_pointer& font, uint16_t chr) {
|
bool font_manager::has_glyph(fonttype_pointer& font, uint16_t chr) {
|
||||||
if (font->xft != nullptr) {
|
if (font->xft != nullptr) {
|
||||||
return static_cast<bool>(XftCharExists(m_display.get(), font->xft, (FcChar32)chr));
|
return static_cast<bool>(XftCharExists(m_display.get(), font->xft, static_cast<FcChar32>(chr)));
|
||||||
} else {
|
} else {
|
||||||
if (chr < font->char_min || chr > font->char_max) {
|
if (chr < font->char_min || chr > font->char_max) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user