Disable pango markup for plain-text input in i3bar. (#2505)

fixes #2498
This commit is contained in:
Ingo Bürk 2016-10-18 08:29:31 +02:00 committed by Michael Stapelberg
parent e82e26a24d
commit 83452a3472
1 changed files with 5 additions and 3 deletions

View File

@ -359,11 +359,13 @@ static void read_flat_input(char *buffer, int length) {
I3STRING_FREE(first->full_text); I3STRING_FREE(first->full_text);
/* Remove the trailing newline and terminate the string at the same /* Remove the trailing newline and terminate the string at the same
* time. */ * time. */
if (buffer[length - 1] == '\n' || buffer[length - 1] == '\r') if (buffer[length - 1] == '\n' || buffer[length - 1] == '\r') {
buffer[length - 1] = '\0'; buffer[length - 1] = '\0';
else } else {
buffer[length] = '\0'; buffer[length] = '\0';
first->full_text = i3string_from_markup(buffer); }
first->full_text = i3string_from_utf8(buffer);
} }
static bool read_json_input(unsigned char *input, int length) { static bool read_json_input(unsigned char *input, int length) {