From f6bedeeb7cebb44df6df4c07b35c803cd7a33a94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Sat, 9 Sep 2017 01:04:32 -0500 Subject: [PATCH] =?UTF-8?q?Revert=20"cut=20on=20underscores=20too,=20might?= =?UTF-8?q?=20be=20required=20to=20add=20other=20delimiters=20so=20?= =?UTF-8?q?=E2=80=A6"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libretro-common/string/stdstring.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libretro-common/string/stdstring.c b/libretro-common/string/stdstring.c index bec5629c46..88a436f128 100644 --- a/libretro-common/string/stdstring.c +++ b/libretro-common/string/stdstring.c @@ -188,7 +188,7 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode) } /* check for whitespace */ - if (string[i] == ' ' || string[i] == '_') + if (string[i] == ' ') { buffer[i] = '\n'; i++; @@ -200,7 +200,7 @@ char *word_wrap(char* buffer, const char *string, int line_width, bool unicode) /* check for nearest whitespace back in string */ for (k = i; k > 0; k--) { - if (string[k] != ' ' || string[k] != '_') + if (string[k] != ' ') continue; buffer[k] = '\n';