summaryrefslogtreecommitdiff
path: root/src/gui/windows/chatwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-02-12 12:14:01 +0300
committerAndrei Karas <akaras@inbox.ru>2014-02-12 12:14:01 +0300
commite10e6c7f8860536986b455b58b907026996b28fa (patch)
tree5281f76c52d61be643ff7ef44804a361b079829b /src/gui/windows/chatwindow.cpp
parent165556c8ddf4d3a036d6d89e680e208d2b435866 (diff)
downloadmv-e10e6c7f8860536986b455b58b907026996b28fa.tar.gz
mv-e10e6c7f8860536986b455b58b907026996b28fa.tar.bz2
mv-e10e6c7f8860536986b455b58b907026996b28fa.tar.xz
mv-e10e6c7f8860536986b455b58b907026996b28fa.zip
add autocomplete special commands in party tab.
Diffstat (limited to 'src/gui/windows/chatwindow.cpp')
-rw-r--r--src/gui/windows/chatwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/chatwindow.cpp b/src/gui/windows/chatwindow.cpp
index 5b0bb69b6..61817053a 100644
--- a/src/gui/windows/chatwindow.cpp
+++ b/src/gui/windows/chatwindow.cpp
@@ -1337,6 +1337,12 @@ void ChatWindow::autoComplete()
if (!newName.empty() && !startName)
secureChatCommand(newName);
+ if (cTab && newName.empty())
+ {
+ cTab->getAutoCompleteCommands(nameList);
+ newName = autoComplete(nameList, name);
+ }
+
if (newName.empty() && actorManager)
{
actorManager->getPlayerNames(nameList, true);