Undo some things by to original.

This commit is contained in:
Nathaniel Olsen 2015-06-15 23:22:02 -05:00
parent 081f896bd3
commit a466a0a8e7
3 changed files with 4 additions and 4 deletions

View File

@ -474,7 +474,7 @@ void ChatPrompt::historyNext()
}
}
void ChatPrompt::nickCompletion(const std::list<std::string> &names, bool backwards)
void ChatPrompt::nickCompletion(const std::list<std::string>& names, bool backwards)
{
// Two cases:
// (a) m_nick_completion_start == m_nick_completion_end == 0
@ -551,7 +551,7 @@ void ChatPrompt::nickCompletion(const std::list<std::string> &names, bool backwa
m_cursor = prefix_start + replacement.size();
clampView();
m_nick_completion_start = prefix_start;
m_nick_completion_end = prefix_end;
m_nick_completion_end = prefix_end;
}
void ChatPrompt::reformat(u32 cols)

View File

@ -161,7 +161,7 @@ public:
void historyNext();
// Nick completion
void nickCompletion(const std::list<std::string> &names, bool backwards);
void nickCompletion(const std::list<std::string>& names, bool backwards);
// Update console size and reformat the visible portion of the prompt
void reformat(u32 cols);

View File

@ -552,7 +552,7 @@ bool GUIChatConsole::OnEvent(const SEvent& event)
{
#if (defined(linux) || defined(__linux))
wchar_t wc = L'_';
mbtowc( &wc, (char*) &event.KeyInput.Char, sizeof(event.KeyInput.Char) );
mbtowc( &wc, (char *) &event.KeyInput.Char, sizeof(event.KeyInput.Char) );
m_chat_backend->getPrompt().input(wc);
#else
m_chat_backend->getPrompt().input(event.KeyInput.Char);