summaryrefslogtreecommitdiff
path: root/src/chat.cpp
diff options
context:
space:
mode:
authorNathaniel Olsen <NateTenn5123@Gmail.com>2015-06-15 21:10:06 -0500
committerest31 <MTest31@outlook.com>2015-06-16 07:16:22 +0200
commit3ae8b92be6e527054a3f291dee995230528141ca (patch)
tree2e0bd9a9600ac391b4577a927b64f2bfe9b0abb1 /src/chat.cpp
parentbbf6f4fc25bbb66bf468ed33f8b6bc812dd39e88 (diff)
downloadminetest-3ae8b92be6e527054a3f291dee995230528141ca.tar.gz
minetest-3ae8b92be6e527054a3f291dee995230528141ca.tar.bz2
minetest-3ae8b92be6e527054a3f291dee995230528141ca.zip
Remove unneccessary space for tab completion
Diffstat (limited to 'src/chat.cpp')
-rw-r--r--src/chat.cpp4
1 files changed, 2 insertions, 2 deletions
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<std::string>& 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<std::string>& 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;