From: Nathaniel Olsen Date: Tue, 16 Jun 2015 02:10:06 +0000 (-0500) Subject: Remove unneccessary space for tab completion X-Git-Tag: 0.4.13~202 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=3ae8b92be6e527054a3f291dee995230528141ca;p=oweals%2Fminetest.git Remove unneccessary space for tab completion --- diff --git a/src/chat.cpp b/src/chat.cpp index 2d29d39da..50391d39b 100644 --- a/src/chat.cpp +++ b/src/chat.cpp @@ -511,7 +511,7 @@ void ChatPrompt::nickCompletion(const std::list& names, bool backwa { std::wstring completion = narrow_to_wide(*i); if (prefix_start == 0) - completion += L":"; + completion += L": "; completions.push_back(completion); } } @@ -541,7 +541,7 @@ void ChatPrompt::nickCompletion(const std::list& names, bool backwa } } } - std::wstring replacement = completions[replacement_index] + L" "; + std::wstring replacement = completions[replacement_index]; if (word_end < m_line.size() && isspace(word_end)) ++word_end;