aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-05-20 09:48:44 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-05-20 10:48:44 +0200
commit00972d42d7ad5873f4ef1f487a6786d6b3dbcc39 (patch)
treec939aa7bb9015aef0d67caf0c68cc250e076aac5
parent673ac55a9db4728a6817e284196e7acdd8f3daaf (diff)
downloadminetest-00972d42d7ad5873f4ef1f487a6786d6b3dbcc39.tar.gz
minetest-00972d42d7ad5873f4ef1f487a6786d6b3dbcc39.tar.bz2
minetest-00972d42d7ad5873f4ef1f487a6786d6b3dbcc39.zip
this might fix #5661, needs testing (#5775)
-rw-r--r--src/chat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/chat.cpp b/src/chat.cpp
index f070e6e7b..fc93e3027 100644
--- a/src/chat.cpp
+++ b/src/chat.cpp
@@ -331,7 +331,7 @@ u32 ChatBuffer::formatChatLine(const ChatLine& line, u32 cols,
while (frag_length < remaining_in_input &&
frag_length < remaining_in_output)
{
- if (isspace(line.text.getString()[in_pos + frag_length]))
+ if (iswspace(line.text.getString()[in_pos + frag_length]))
space_pos = frag_length;
++frag_length;
}